[FLASH-USERS] Where to compile new programs and modules in FLASH
espresso
amidala at utk.edu
Wed Mar 26 14:31:23 EDT 2008
Hello,
I am new to Flash so I apologize for the convoluted nature of this question. I
am trying to add a new
nuclear reaction network to Flash and I am starting with the aprox13 code as a
model. I am currently
modifying FLASH2.5/source/source_terms/burn/aprox13_modified/net.F90.
I need net.F90 to call a function called read_nuclear_data and use a module
called nuclear_data that
sits in a program called data.f in the same lowest directory with net.F90.
(not the stub net.F90 in burn,
but the net.F90 that sits in aprox13_modified under burn)
I thought that modifying the Makefile in FLASH2.5/source/source_terms/burn,
where net.F90s parent
stub gets instructed to compile would disrupt the modular nature of the
program, so I wrote a new
Makefile in ~burn/aprox13_modified to compile data.f . This works if I only
want to do operations
within data.f , however when I try to use modules in data.f in the lowest
net.F90 I get a compiler error
that states, Error in opening the compiled module file. Check INCLUDE
paths. [NUCLEAR_DATA]. Im
not sure what Check INCLUDE paths means in this context.
The problem may be that data.f needs to compile before net.F90, but I cant
figure out how to do this
and preserve modular structure of Flash. Should I move data.f up a directory
into Burn and compile it
using commands in the Makefile there, where net.F90s parent stub is compiled
? Is there a way that I
can do it through a Makefile in the aprox13_modified directory below Burn
using INCLUDE paths or
other means?
I do have a flash2 manual and I have dug though it to frustration. On page 44
it tells me to consult the
authors of FLASH when attempting to add new solvers or physics so I am
following that suggestion
now.
Any help would be appreciated.
Thank you,
Suzanne Parete-Koon
More information about the flash-users
mailing list