Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

compilation error for B_1850_BGC-BPRP

Hi,

I am compiling the B_1850_BGC-BPRP code on Linux cluster with the compilers mpif90 and mpicc. I am getting
the following error.

mpif90 -c -I/usr/local/mpich_intel/include -DSYSLINUX -DLINUX -DCPRUNKNOWNCPR -DSPMD -DHAVE_MPI -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT -D_USEBOX -I/usr/local/mpich_intel/include -I/usr/local/netcdf/include calcdecomp.F90
calcdecomp.F90(66): (col. 5) remark: LOOP WAS VECTORIZED.
calcdecomp.F90(67): (col. 5) remark: LOOP WAS VECTORIZED.
mpif90 -c -I/usr/local/mpich_intel/include -DSYSLINUX -DLINUX -DCPRUNKNOWNCPR -DSPMD -DHAVE_MPI -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT -D_USEBOX -I/usr/local/mpich_intel/include -I/usr/local/netcdf/include piolib_mod.F90
fortcom: Error: piolib_mod.F90, line 1528: This name does not have a type, and must have an explicit type. [MPI_ROOT]
iosystem(i)%iomaster = MPI_ROOT
---------------------------------------^
fortcom: Warning: piolib_mod.F90, line 1655: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [IOPROC]
subroutine pio_recommend_iotasks(comm, ioproc, numiotasks, miniotasks, maxiotasks )
-----------------------------------------^
fortcom: Warning: piolib_mod.F90, line 1655: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value. [NUMIOTASKS]
subroutine pio_recommend_iotasks(comm, ioproc, numiotasks, miniotasks, maxiotasks )
-------------------------------------------------^
compilation aborted for piolib_mod.F90 (code 1)
gmake[1]: *** [piolib_mod.o] Error 1
gmake[1]: Leaving directory `/ecofs/gbala/cesm1_0_4/prdl-t31/pio'
gmake: *** [all] Error 2

Any help or advice you can give will be greatly appreciated.

Thanks.

Dev
 

jedwards

CSEG and Liaisons
Staff member
Hi Dev,

The issue is that you do not have support for the MPI2 extensions in your MPI library. These extensions have been around for several years now, and you should consider using mpich2 or openmpi. However there is a work around available by adding the flag -DNO_MPI2 and rebuilding.
 
Jim Edwards said:
Hi Dev,

The issue is that you do not have support for the MPI2 extensions in your MPI library. These extensions have been around for several years now, and you should consider using mpich2 or openmpi. However there is a work around available by adding the flag -DNO_MPI2 and rebuilding.

Hi Jim Edwards,-DNO_MPI2

Thanks for the reply. I am sorry to ask you this, where I shall add this flag -DNO_MPI2 to rebuild.

Hope to hear from you soon.

Thanks a lot.
 
Top