compilation problem

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
DTokarev

compilation problem

#1 Unread post by DTokarev »

Hi All,

I have error message after last update.
If I run build.bash script I received this message:
cd Build; /opt/intel/Compiler/11.1/059/bin/intel64/ifort -c -heap-arrays -fp-model precise -openmp -fpp -ip -O3 -xW -free analytical.f90
analytical.f90(731): error #6460: This is not a field name that is defined in the encompassing structure. [LSRC]
& SOURCES(ng) % Lsrc, &
-------------------------------------------^
analytical.f90(731): error #6634: The shape matching rules of actual arguments and dummy arguments have been violated. [LSRC]
& SOURCES(ng) % Lsrc, &
-------------------------------------------^
compilation aborted for analytical.f90 (code 1)
make: *** [Build/analytical.o] Error 1
If I run makefile - other:
cd /usr/local/Build; /opt/intel/Compiler/11.1/059/bin/intel64/ifort -c -heap-arrays -fp-model precise -openmp -fpp -ip -O3 -xW wrt_his.f90
compilation aborted for inp_par.f90 (code 1)
make: *** [/usr/local/Build/inp_par.o] Error 1
make: *** Waiting for unfinished jobs....
Any suggestions, please.

robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: compilation problem

#2 Unread post by robertson »

I would suggest reading the :arrow: ROMS 3.3 release notes. There is mention of changes to ana_psource.h involving Lsrc. If you are using customized analytical functions you may need to update them to reflect this change.

DTokarev

Re: compilation problem

#3 Unread post by DTokarev »

Hi All,

First:
I tried to run build.sh and received error message:
cd /usr/local/Build; -c -heap-arrays -openmp -fpp -ip -O3 -xW mod_kinds.f90
/bin/sh: -c: command not found
make: *** [/usr/local/Build/mod_kinds.o] Error 127
make: *** Waiting for unfinished jobs....
ROMS/Bin/cpp_clean /usr/local/Build/master.f90
buid.bash is OK.
Any recommendation?

Second:
I try to run Fennel model, but all parameter are zero:
.....
0.0000E+00 Vp0 Eppley temperature-limited growth parameter
(nondimensional).
0.0000E+00 I_thNH4 Radiation threshold for nitrification (W/m2).
0.0000E+00 D_p5NH4 Half-saturation radiation for nitrification (W/m2).
0.0000E+00 NitriR Nitrification rate (day-1).
1.0000E+00 K_NO3 Inverse half-saturation for phytoplankton NO3
uptake (1/(mmol_N m-3)).
0.0000E+00 K_NH4 Inverse half-saturation for phytoplankton NH4
uptake (1/(mmol_N m-3)).
0.0000E+00 K_Phy Zooplankton half-saturation constant for ingestion
(mmol_N m-3)^2.
0.0000E+00 Chl2C_m Maximum chlorophyll to carbon ratio (mg_Chl/mg_C).
0.0000E+00 ChlMin Chlorophyll minimum threshold (mg_Chl/m3).
0.0000E+00 PhyCN Phytoplankton Carbon:Nitrogen ratio (mol_C/mol_N).
0.0000E+00 PhyIP Phytoplankton NH4 inhibition parameter (1/mmol_N).
2.5000E-02 PhyIS Phytoplankton growth, initial slope of P-I curve
(mg_C/(mg_Chl Watts m-2 day)).
0.0000E+00 PhyMin Phytoplankton minimum threshold (mmol_N/m3).
0.0000E+00 PhyMR Phytoplankton mortality rate (day-1).
0.0000E+00 ZooAE_N Zooplankton nitrogen assimilation efficiency
(nondimensional).
......
Can I set it in the ana_ files?

Thanks in advance

User avatar
arango
Site Admin
Posts: 1350
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: compilation problem

#4 Unread post by arango »

No, you need to use input script ROMS/External/bio_Fennel.in. You may copy this file to your application directory and play with the different parameters.

Make sure that you have an updated version of your code. All the ecosystem models in ROMS were re-structured when ROMS 3.3 was released.

DTokarev

Re: compilation problem

#5 Unread post by DTokarev »

Thank you, arango.

I have a problem with temperature, but I'm asking my question here.

I use next options in .h file.
#define UV_PSOURCE /* turn ON or OFF point Sources/Sinks */
#define TS_PSOURCE /* turn ON or OFF point Sources/Sinks */
There are Source (negative x-direction) and Sink (negative eta-direction) in the model.
Initial temp of source is 22.5 degrees of Celsius.

I have a negative temp area.

Any suggestions?

Thanks in advance.

DTokarev

Re: compilation problem

#6 Unread post by DTokarev »

Hi,

I run the model with these options:
#define UV_PSOURCE /* turn ON or OFF point Sources/Sinks */
#define TS_PSOURCE /* turn ON or OFF point Sources/Sinks */
#define TS_MPDATA
Is it legitimate? :?:
Thanks

Post Reply