CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
REAL, DIMENSION(MAX_SOIL_LEVELS) :: soil_thick_input ! depth to soil in
1
Error: Expression at (1) must be of INTEGER type, found REAL
module_NoahMP_hrldas_driver.f:334.18:
REAL, DIMENSION(MAX_SOIL_LEVELS) :: soil_thick_input ! depth to soil in
1
Error: Expression at (1) must be of INTEGER type, found REAL
module_NoahMP_hrldas_driver.f:334.54:
REAL, DIMENSION(MAX_SOIL_LEVELS) :: soil_thick_input ! depth to soil in
1
Error: The module or main program array 'soil_thick_input' at (1) must have constant shape
make[1]: *** [module_NoahMP_hrldas_driver.o] Error 1
make[1]: Leaving directory `/home/HRLDAS/src/HRLDAS-v3.6/IO_code'
make: *** [all] Error 2
Somehow, the issue you opened in HRLDAS repo on GitHub includes more info than your post here.
Perhaps the version of gfortran in Ubuntu 20.04 enforces some restrictions that weren't in place previously. Try to compile with -std=legacy.
One thing I noticed is the affected code line in your post above is #334 and in the compiler output from the GitHub issue #31 it is line #341, whereas the relevant code line in the git repository is #565. Looks like you're compiling an older version. Try checking out the latest git snapshot, maybe your issue is already fixed there.
And if everything else fails try replacing the constant MAX_SOIL_LEVELS with its value in the code:
Hi shruggy:
I tried what you suggested me.
First comment, did not change any result
Regarding isntalling new version, now I'm having new outputs as follows:
Code:
mishel@mishel-VirtualBox:~/HRLDAS/HRLDAS$ make
(cd Utility_routines; make)
make[1]: Entering directory '/home/mishel/HRLDAS/HRLDAS/Utility_routines'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/Utility_routines'
(cd phys; make)
make[1]: Entering directory '/home/mishel/HRLDAS/HRLDAS/phys'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/phys'
(cd IO_code; make)
make[1]: Entering directory '/home/mishel/HRLDAS/HRLDAS/IO_code'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/IO_code'
(cd run; make)
make[1]: Entering directory '/home/mishel/HRLDAS/HRLDAS/run'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/run'
(cd HRLDAS_forcing; make)
make[1]: Entering directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing'
(cd lib; make)
make[2]: Entering directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing/lib'
(make -f Makefile all)
make[2]: Entering directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing'
rm -f create_forcing.f90
/usr/bin/cpp -C -P -traditional -D_GFORTRAN_ create_forcing.F > create_forcing.f90
/usr/bin/gfortran -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -c -I/usr/include/ -I./lib -I./lib create_forcing.f90
create_forcing.f90:1:1:
1 | /* Copyright (C) 1991-2020 Free Software Foundation, Inc.
| 1
Error: Invalid character in name at (1)
create_forcing.f90:16:4:
16 | <https://www.gnu.org/licenses/>. */
| 1
Error: Invalid character in name at (1)
create_forcing.f90:19:1:
19 | /* This header is separate from features.h so that the compiler can
| 1
Error: Invalid character in name at (1)
create_forcing.f90:22:4:
22 | <features.h> because the implicit include comes before any feature
| 1
Error: Invalid character in name at (1)
create_forcing.f90:27:1:
27 | /* glibc's intent is to support the IEC 559 math functionality, real
| 1
Error: Invalid character in name at (1)
create_forcing.f90:36:1:
36 | /* wchar_t uses Unicode 10.0.0. Version 10.0 of the Unicode Standard is
| 1
Error: Invalid character in name at (1)
make[2]: *** [Makefile:25: create_forcing.o] Error 1
make[2]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing'
make[1]: *** [Makefile:13: default] Error 2
make[1]: Leaving directory '/home/mishel/HRLDAS/HRLDAS/HRLDAS_forcing'
make: *** [Makefile:12: all] Error 2
This happened trying with Ubuntu 20.04.
DO you have any guess what this is happening?
THanks in advance for your help.
Cheers,
Mishel
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.