Opened 8 years ago
Closed 8 years ago
#131 closed Support (fixed)
Error when compiling the flexwrf3.2 with GNU for OPENMP parallel run
Reported by: | skarri | Owned by: | jbrioude |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | FP coding/compilation | Version: | FLEXPART-WRF |
Keywords: | flexwrf3.2 installation error | Cc: |
Description
Hi,
When I compile the flexwrf3.2 beta with GNU compiler for OPENMP parallel run with following command
make -f makefile.mom omp for OPENMP parallel run
I received error message as follows
mt_stream.f90:110:52 integer (INT32), parameter :: MT19937_MATA =INT (Z' 9908b0df', INT32)
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option -fno-range-check
This was compiled successfully with following command without any error
gfortran -c -I/home/gnu/netcdf-4.1/include -m64 -mcmodel=medium -fconvert=little-endian -finit-local-zero -fno-range-check mt_stream.f90
Again I received the same error message for mt_stream.f90, this program also compiled with
gfortran -c -I/home/gnu/netcdf-4.1/include -m64 -mcmodel=medium -fconvert=little-endian -finit-local-zero -fno-range-check mt_stream.f90
after compilation of this program I have used make -f makefile.mom omp for OPENMP parallel run command for installation
This time I received
read_ncwrfout.f90:82 Error: Con't open include fiel 'netcdf.inc'
complete netcdf libraries path was set in makefile.mom, but still I received this message.
Pls, help me to install model with GNU for parallel simulation
Thanks in advance.
Change History (3)
comment:1 Changed 8 years ago by pesei
- Component changed from FP other to FP coding/compilation
- Owner set to jbrioude
- Status changed from new to assigned
- Type changed from Defect to Support
comment:2 Changed 8 years ago by jbrioude
Hi,
yes, the option -fno-range-check should be in the makefile.mom
the error message you get means that either the include path for netcdf is not correct or you didn't compile a netcdf-fortran library which will generate the netcdf.inc file.
you can compile this one for instance:
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.4.2.tar.gz
the compilation should work after that.
J.
comment:3 Changed 8 years ago by jbrioude
- Resolution set to fixed
- Status changed from assigned to closed
just for information: trac syntax for code snippets is, for example
(see also icon tool bar above the edit window)