I have a small ecosystem module with several subroutines that I would like to call from ROMS. It is written in free format and still being developed so I would like to link to this module as a shared or static library. However, I cannot get ROMS to recognize its existence.
I have added a path for my library and the modules in the build script:
Code: Select all
export MY_ECO_DIR=${MY_PROJECT_DIR}/Ecosystem
Code: Select all
LIBS += $(MY_ECO_DIR)/libeco.so
LIBS += $(MY_ECO_DIR)/mod_eco.o
Code: Select all
LIBS += -L$(MY_ECO_DIR) -leco
Code: Select all
USE mod_eco
Code: Select all
biology.f90:212.10:
USE mod_eco
1
Fatal Error: Can't open module file 'mod_eco.mod' for reading at (1): No such file or directory
Code: Select all
gfortran -L. eco_main.f90 -leco -o main
Thanks