Error when installing SCRIP_COAWST

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
zhaolv
Posts: 39
Joined: Thu Nov 11, 2021 3:56 pm
Location: Changsha University of Science and Technology

Error when installing SCRIP_COAWST

#1 Unread post by zhaolv »

Dear all.
I am trying to compile SCRIP_COAWST from the word document and I am using the gfortran compiler. But when I use make it doesn't create the .exe file, I don't know why, I did use netcdf4. Here is my out file

Also, I used '--enable-netcdf-4' to see if ndtcdf4 was installed according to another answer and I did receive a yes answer.

please help me.

Code: Select all

cp -f /usr/local/netcdf4/include/netcdf.inc .
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./kinds_mod.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./constants.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./iounits.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./netcdf.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./scripwrap_mod.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./create_fullgrid.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./grids.f
/usr/bin/cpp -P -traditional -w               -DMPI  ./read_swan.f  ./read_swan.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./read_swan.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./read_ww3.f
/usr/bin/cpp -P -traditional -w               -DMPI  ./read_roms.f  ./read_roms.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./read_roms.fpp
/usr/bin/cpp -P -traditional -w               -DMPI  ./read_wrf.f  ./read_wrf.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./read_wrf.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./read_hydro.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_vars.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_distwgt.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./timers.f
/usr/bin/cpp -P -traditional -w               -DMPI  ./remap_conserv.f  ./remap_conserv.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_conserv.fpp
/usr/bin/cpp -P -traditional -w               -DMPI  ./remap_bilinear.f  ./remap_bilinear.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_bilinear.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_bicubic.f
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./remap_write.f
/usr/bin/cpp -P -traditional -w               -DMPI  ./scrip.f  ./scrip.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./scrip.fpp
/usr/bin/cpp -P -traditional -w               -DMPI  ./create_masks.f  ./create_masks.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./create_masks.fpp
/usr/bin/cpp -P -traditional -w               -DMPI  ./scrip_coawst.f  ./scrip_coawst.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -c ./scrip_coawst.fpp
/usr/local/coawst/mpich/bin/mpif90 -frepack-arrays -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include kinds_mod.o constants.o iounits.o netcdf.o scripwrap_mod.o create_fullgrid.o grids.o read_swan.o read_ww3.o read_roms.o read_wrf.o read_hydro.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o timers.o remap_write.o scrip.o create_masks.o scrip_coawst.o  -o ./scrip_coawst  -L/usr/local/netcdf4/lib -lnetcdff


jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Error when installing SCRIP_COAWST

#2 Unread post by jcwarner »

your executable is created here:
-o ./scrip_coawst

so it does not have a .exe on the end. do a
ls -ltr
and do you see
.....
-rw-rw-r-- 1 jwarner domain users 103960 Jan 10 2020 remap_write.o
-rw-rw-r-- 1 jwarner domain users 19413 Jan 10 2020 scrip.fpp
-rw-rw-r-- 1 jwarner domain users 20302 Jan 10 2020 scrip.mod
-rw-rw-r-- 1 jwarner domain users 32112 Jan 10 2020 scrip.o
-rw-rw-r-- 1 jwarner domain users 106457 Jan 10 2020 create_masks.fpp
-rw-rw-r-- 1 jwarner domain users 46241 Jan 10 2020 create_masks.mod
-rw-rw-r-- 1 jwarner domain users 276344 Jan 10 2020 create_masks.o
-rw-rw-r-- 1 jwarner domain users 7026 Jan 10 2020 scrip_coawst.fpp
-rw-rw-r-- 1 jwarner domain users 36296 Jan 10 2020 scrip_coawst.o
-rwxrwxr-x 1 jwarner domain users 1780472 Jan 10 2020 scrip_coawst

the 'x' means executable, and here it is just scrip_coawst

Post Reply