|
[Sponsors] |
how to declare an array like: double Density_Grad_i[nDim] |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2014, 22:33 |
how to declare an array like: double Density_Grad_i[nDim]
|
#1 |
Member
cean wang
Join Date: Feb 2013
Posts: 43
Rep Power: 13 |
Hi,
I'm trying to compile SU2V3 under win7@32 with MSVC2010express. I have problem with numerics_direct_transition.cpp line 151 which is: Code:
double Density_Grad_i[nDim], Density_Grad_j[nDim], Conservative_Grad_i[nDim], Conservative_Grad_j[nDim]; double Primitive_Grad_i[nDim], Primitive_Grad_j[nDim]; Code:
double *Density_Grad_i, *Density_Grad_j; double *Conservative_Grad_i, *Conservative_Grad_j; double *Primitive_Grad_i,*Primitive_Grad_j; Density_Grad_i = new double [nDim]; Density_Grad_j = new double [nDim]; Conservative_Grad_i = new double [nDim]; Conservative_Grad_j = new double [nDim]; Primitive_Grad_i = new double [nDim]; Primitive_Grad_j = new double [nDim]; And there are a few same situations in other cpp files. After all the changes, I got an working su2_cfd.exe. Hope it'll help. Regards, Cean Last edited by ceanwang; January 22, 2014 at 20:39. |
|
January 28, 2014, 16:14 |
|
#2 |
Member
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15 |
Great! And this was able to run a test case?
if you want you can submit a pull request to github and we'll try it out - https://github.com/su2code/SU2 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Continuing User Defined Real Gas Model issues | aeroman | FLUENT | 6 | April 8, 2016 04:34 |
Sgimpi | pere | OpenFOAM | 27 | September 24, 2011 08:57 |
Ld_library_path | scottneh | OpenFOAM | 9 | November 21, 2009 10:15 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |