Changeset 2185


Ignore:
Timestamp:
Dec 6, 2019, 11:30:13 AM (5 years ago)
Author:
emillour
Message:

Minor update of the install_ioipsl_centos-ifort.bash to ensure it uses the same arch.path and arch.env as the GCM.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/ioipsl/install_ioipsl_centos-ifort.bash

    r2180 r2185  
    11#!/bin/bash
    2 # script to download and install the latest version of IOIPSL on Gnome
     2# script to download and install the latest version of IOIPSL on LMD CentOS machines
    33#
    44
    55#0. Preliminary stuff
    6 source ../arch.env
    7 
    8 ####
    9 #source ../arch.path
    10 #marche pas car -I deja inclus
    11 #donc mettre en dur:
    12 ####
    13 NETCDF="/opt/netcdf45/ifort15"
    14 netcdf_include="$NETCDF/include"
    15 netcdf_lib="$NETCDF/lib"
    16 echo $netcdf_include
    17 echo $netcdf_lib
     6# source the environment from the GCM arch files
     7source ../arch/arch-centos-ifort-para.env
     8source ../arch/arch-centos-ifort-para.path
    189
    1910whereami=`pwd -P`
     
    2718# 2. Set correct settings:
    2819# add a "ciclad" configuration to AA_make.gdef
    29 echo "#-Q- cicladi  #- Global definitions for ciclad at UPMC, ifort" >> AA_make.gdef
     20echo "#-Q- cicladi  #- Global definitions for CentOS at LMD, ifort" >> AA_make.gdef
    3021echo "#-Q- cicladi  M_K = make" >> AA_make.gdef
    3122echo "#-Q- cicladi  P_C = cpp" >> AA_make.gdef
     
    4839echo "#-Q- cicladi  C_L = icc" >> AA_make.gdef
    4940echo "#-Q- cicladi  #-" >> AA_make.gdef
    50 echo "#-Q- cicladi  NCDF_INC = ${netcdf_include}" >> AA_make.gdef
    51 echo "#-Q- cicladi  NCDF_LIB = -L${netcdf_lib} -lnetcdff" >> AA_make.gdef
    52 #echo "#-Q- cicladi  NCDF_INC = ${NETCDF_INCDIR}" >> AA_make.gdef
    53 #echo "#-Q- cicladi  NCDF_LIB = -L${NETCDF_LIBDIR} -lnetcdff" >> AA_make.gdef
     41echo "#-Q- cicladi  NCDF_INC = ${NETCDF_INCDIR:2}" >> AA_make.gdef
     42echo "#-Q- cicladi  NCDF_LIB = ${NETCDF_LIBDIR} ${NETCDF_LIB}" >> AA_make.gdef
    5443echo "#-Q- cicladi  #-" >> AA_make.gdef
    5544
Note: See TracChangeset for help on using the changeset viewer.