Opened 9 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:


When I compile the flexwrf3.2 beta with GNU compiler for OPENMP parallel run with following command

make -f 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 omp for OPENMP parallel run command for installation

This time I received
read_ncwrfout.f90:82 Error: Con't open include fiel ''
complete netcdf libraries path was set in, 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 9 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

just for information: trac syntax for code snippets is, for example

gfortran -c -I/home/gnu/netcdf-4.1/include -m64 -mcmodel=medium -fconvert=little-endian -finit-local-zero -fno-range-check mt_stream.f90 

(see also icon tool bar above the edit window)

comment:2 Changed 9 years ago by jbrioude

yes, the option -fno-range-check should be in the

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 file.
you can compile this one for instance:

the compilation should work after that.

comment:3 Changed 8 years ago by jbrioude

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.
hosted by ZAMG