Compiling AD_SENSITIVITY

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
ckerry
Posts: 22
Joined: Wed Sep 15, 2010 1:59 pm
Location: UNSW Australia

Compiling AD_SENSITIVITY

#1 Unread post by ckerry »

I am trying to compile to perform adjoint sensitivity analysis with #define AD_SENSITIVITY.
I am able to compile with #define NLM_DRIVER successfully, but when I try to compile with #define AD_SENSITIVITY I get the following error.

/home/ckerry/adjoint_sens_analysis/runs/build/ocean_control.o: In function `ocean_control_mod_mp_roms_run_':
ocean_control.f90:(.text+0x18a): undefined reference to `ad_main3d_'
/home/ckerry/adjoint_sens_analysis/runs/build/ocean_control.o: In function `ocean_control_mod_mp_roms_initialize_':
ocean_control.f90:(.text+0x4a5): undefined reference to `ad_initial_'
make: *** [/home/ckerry/adjoint_sens_analysis/runs/romsM] Error 1

I have read the FAQ at https://www.myroms.org/wiki/Frequently_ ... _link_time

I am using USE_NETCDF4 and when I type nc-config --flibs I get

-L/opt/nesi/mahuika/netCDF-Fortran/4.4.4-intel-2017a/lib -lnetcdff -L/opt/nesi/mahuika/imkl/2017.6.256-iimpi-2017a/lib -L/opt/nesi/mahuika/imkl/2017.6.256-iimpi-2017a/mkl/lib/intel64 -L/opt/nesi/mahuika/imkl/2017.6.256-iimpi-2017a/compiler/lib/intel64 -L/opt/nesi/mahuika/imkl/2017.6.256-iimpi-2017a/lib -L/opt/nesi/mahuika/netCDF/4.4.1-intel-2017a/lib64 -lnetcdf -lnetcdf -liomp5 -lpthread

So I do have paths to both libnetcdf.a and libnetcdff.a

ad_main3d.F and ad_initial.F are in the ./ROMS/Adjoint directory of my ROMS_SRC directory

Any help would be appreciated!

Post Reply