Thank you everybody for stimulating suggestions.
I managed to do what I wanted to do in a different way that I would like
to submit to your experienced opinions for improvement.
Here is the code tested with gfortran, g95 and ifort. Any suggestion
and/or criticism is welcome.
module...
Here is another maybe-trivial--problem.
I cannot figure out how to write a character function that returns a variable-length string just like the intrinsic trim does.
In the example below, the len applied to trim returns
the length of the trimmed string.
character(len=100) :: qaz='qwerty'...
I'm sure I haven't explaiend my problem clearly.
vars qaz,zaq,zot are defined in a module and they are there with
different names and this situation cannot be changed (part of the
program is maintained by another group that does not loke to chenge
their coding "standards")
module qq
integer...
Here is a problem that I would manage easily in fortran 77 but it seems to be more tricky in 90 (but probably i'm wrong):
suppose to have NV arrays of the same shape and dimensions, say (nx,ny,nz). I would like to have a unique array with 4 dims, one indicating the variable to address.
In 77...
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.