I have a question about whether it is possible to specify the order of compilation of the files in SRC. I have a couple of subroutines and variables that I wish to access from some of my user subroutines, so it seemed a good idea to me to include them in a Fortran module. However, in order to work, it must be compiled before the files where it is used, otherwise I get an error like this:
Code: Select all
use map_bundle
1
Fatal Error: Can't open module file 'map_bundle.mod' for reading at (1): No such file or directory
Another question, unrelated to the first one: currently I am using the subroutine "findpt" to identify the cell a point belongs to, but if I am right it actually finds the cell whose centre is closest to the point. I am worried that when the size of two adjoining cells is different, using it on a point close to the face they share would return the wrong cell. Can this happen? Does a safer way exist?
Thanks in advance to anybody answering.
Cheers,
Cosimo