I am facing some memory/efficiency issues in an implementation of a new variable WRF-MPAS post #33232, that I think I could be able to solve if I could provide a list of default values for the bins.
So here my question, is there a way that I can define a new entry in the namelist with array default values? In the registry I defined my namelist new parameters
I am wondering if I can provide directly a first list of values. I now how to provide default scalar values, but not vectorial.
If I do something like this at
I got an error message from fortran telling me that is expecting
If I add them directly as:
I got error message during the compilation, I guess, due to the pre-processing and automatic writing of code:
In the file
I did not find any details on the Tiger-team documentation.
If I try to introduce the values manually, they got removed by the pre-compilation mechanism and I got the same error.
Many thanks in advance,
Lluís
So here my question, is there a way that I can define a new entry in the namelist with array default values? In the registry I defined my namelist new parameters
htasrng
, hhursrng
, but by now their default value is -1
.I am wondering if I can provide directly a first list of values. I now how to provide default scalar values, but not vectorial.
If I do something like this at
registry.cordex
:
Code:
rconfig real htasrng namelist,cordex max_rng 173.15,268.15,273.15,278.15,283.15,288.15,293.15,298.15,303.15 rh "htasrng" "bins for temporal residence of tas" ""
(/ /)
,If I add them directly as:
Code:
rconfig real htasrng namelist,cordex max_rng (/ 173.15,268.15,273.15,278.15,283.15,288.15,293.15,298.15,303.15 /) rh "htasrng" "bins for temporal residence of tas" ""
Code:
(...)
ifort -c -real-size `expr 8 \* 4` -i4 -O0 -fno-inline -no-ip -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -g -O0 -fno-inline -no-ip -traceback -I../dyn_em -I../dyn_nmm -IWRF/external/esmf_time_f90 -IWRF/main -IWRF/external/io_netcdf -IWRF/external/io_int -IWRF/frame -IWRF/share -IWRF/phys -IWRF/wrftladj -IWRF/chem -IWRF/inc -I/opt/netcdf/netcdf-4/intel/2021.4.0/include module_configure.f90
module_configure.f90(11173): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER> TYPE BYTE CLASS COMPLEX REAL INTEGER CHARACTER DOUBLE DOUBLECOMPLEX ...
htasrng = (/
------------^
module_configure.f90(11174): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER> TYPE BYTE CLASS COMPLEX REAL INTEGER CHARACTER DOUBLE DOUBLECOMPLEX ...
(...)
In the file
frame/module_configure.f90
, I got:
Code:
htasrng = (/
hhursrng = (/
I did not find any details on the Tiger-team documentation.
If I try to introduce the values manually, they got removed by the pre-compilation mechanism and I got the same error.
Many thanks in advance,
Lluís