Ignore:
Timestamp:
Oct 23, 2018, 11:16:41 AM (6 years ago)
Author:
jghattas
Message:

Added all modifications in the model code that were used for the simulations with DYANMICO during the Grand Challeng 2018. Modifications done by Y. Meurdesoif, L. Fairhead and A.K. Traore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/DYNAMICO-conv-GC/makelmdz_fcm

    r2743 r3406  
    267267  fi
    268268  # source architecture PATH and ENV files
     269  set +e
    269270  source arch.env
    270271  source arch.path
     272  set -e
    271273else
    272274  echo "You must define a target architecture"
     
    324326   CPP_KEY="$CPP_KEY INCA"
    325327   INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    326    LIB="$LIB -L${INCA_LIBDIR} -lchimie"
     328   LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}"
    327329fi
    328330
     
    335337        export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib
    336338        INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    337         LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io"
     339        LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}"
    338340    else
    339341        CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT"
    340342        INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    341         LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"
     343        LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}"
    342344    fi
    343345fi
     
    372374#    For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments
    373375#    option orchidee1.9 : Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    374    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
     376   INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}"
    375377   CPP_KEY="$CPP_KEY CPP_VEGET"
    376378# temporary, for Orchidee versions 1.9.* (before openmp activation)
     
    383385      orch_libs="sechiba parameters stomate parallel orglob"
    384386   fi
    385    LIB="${LIB} -L${ORCH_LIBDIR}"
    386    for lib in ${orch_libs} ; do
    387       if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
    388          LIB="${LIB} -l${LIBPREFIX}$lib "
    389       fi
    390    done
     387   LIB="${LIB} -L${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}"
    391388elif [[ "$veget" != "false" ]] ; then
    392389   echo "Option -v $veget does not exist"
     
    422419then
    423420   CPP_KEY="$CPP_KEY CPP_IOIPSL"
    424    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    425    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
     421   INCLUDE="$INCLUDE ${IOIPSL_INCDIR}"
     422   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}"
    426423elif [[ $io == mix ]]
    427424then
    428425   # For now, xios implies also using ioipsl
    429426   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
    430    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    431    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     427   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     428   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    432429elif [[ $io == xios ]]
    433430then
    434431   # For now, xios implies also using ioipsl
    435432   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT"
    436    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    437    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     433   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     434   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    438435fi
    439436
     
    445442fi
    446443
     444# NETCDF library include/library paths
    447445INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
    448 LIB="$LIB ${NETCDF_LIBDIR}"
     446LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}"
    449447
    450448########################################################################
     
    671669
    672670rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
     671set +e
    673672./build_gcm ${fcm_path} -j $job $full
     673status=$?
    674674
    675675rm -rf tmp_src
     
    684684  \rm -f $LIBFGCM/grid/dimensions.h
    685685fi
     686
     687if [ $status -ne 0 ]; then
     688  exit $status
     689fi
Note: See TracChangeset for help on using the changeset viewer.