Changeset 5053


Ignore:
Timestamp:
04/06/20 13:39:23 (8 months ago)
Author:
jgipsl
Message:

Add -I in front of variable INCLUDE which is used in makelmdz_fcm because module load of openmpi and pnetcodf addes include path to INCLUDE variable. This is done to avoid following error message while compiling at obelix:

cpp: error: /usr/local/install/pnetcdf-1.5.0/include:/usr/local/install/openmpi-2.1.5/include: No such file or directory
cpp: warning: '-x c' after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
cpp -P -traditional /usr/local/install/pnetcdf-1.5.0/include:/usr/local/install/openmpi-2.1.5/include -I/home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/../../lib -I/home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/../../lib -I/home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/../IOIPSL/inc -I/home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/../XIOS/inc -I/usr/local/install/netcdf-4.3.2p/include -DCPP_PHYS -DCPP_EARTH -DCPP_PARA -DCPP_MPI -DCPP_VEGET -DCPP_RRTM -DCPP_IOIPSL -DCPP_XIOS -DCPP_IOIPSL_NO_OUTPUT -DNC_DOUBLE -I/home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/libo/ifort_LSCE_144x142x79_phylmd_para_mem_orch.e/.config/inc su_aerp.F90 failed (256) at /home/scratch01/jghattas/LMDZOR/modipsl_30mars/modeles/LMDZ/tools/fcm/lib/Fcm/SrcFile.pm line 820.

The error was present only when using arch.env file. When loading modules before launching makelmdz_fcm, variable INCLUDE is reset in the beginning of makelmdz_fcm and therfore no problme was enountered.

Location:
CONFIG/UNIFORM/v6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/ARCH/arch-ifort_LSCE.env

    r5036 r5053  
    22set +e 
    33# source following file to initialize module command 
    4 source /usr/share/Modules/init/ksh 
     4source /usr/share/Modules/init/bash 
    55module purge 
    66 
     
    1111module load gcc/5.2.0 
    1212 
     13# Add -I in front of variable INCLUDE which is used in makelmdz_fcm because module load of openmpi and pnetcodf addes include path to INCLUDE variable 
     14INCLUDE=-I$INCLUDE 
     15 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.3/ARCH/arch-ifort_LSCE.env

    r5036 r5053  
    22set +e 
    33# source following file to initialize module command 
    4 source /usr/share/Modules/init/ksh 
     4source /usr/share/Modules/init/bash 
    55module purge 
    66 
     
    1111module load gcc/5.2.0 
    1212 
     13# Add -I in front of variable INCLUDE which is used in makelmdz_fcm because module load of openmpi and pnetcodf addes include path to INCLUDE variable 
     14INCLUDE=-I$INCLUDE 
     15 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.4/ARCH/arch-ifort_LSCE.env

    r5036 r5053  
    22set +e 
    33# source following file to initialize module command 
    4 source /usr/share/Modules/init/ksh 
     4source /usr/share/Modules/init/bash 
    55module purge 
    66 
     
    1111module load gcc/5.2.0 
    1212 
     13# Add -I in front of variable INCLUDE which is used in makelmdz_fcm because module load of openmpi and pnetcodf addes include path to INCLUDE variable 
     14INCLUDE=-I$INCLUDE 
     15 
Note: See TracChangeset for help on using the changeset viewer.