The reason for 2D is because it is a geometry file, so it has to be 2D. I've had problems passing a 2D array from Fortran to C, so I copied a 2D array into 1D and passed it to C that way, but I can't copy it back into 2D (it's a necessary part of the program).... I am sorry, I didn't really...
Hello,
This is a pretty simple question I hope... I have to create a few files with names containing certain variables - for example blah_1_2.dat, where 1 and 2 are some variables. How do I do that?
I have a problem declaring a static 2D array, because the parameters that I use to size it are passed from a Fortran function (they must come from there). Therefore, they are not recongnized as constant numbers. Is there any way around that?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.