Ignore:
Timestamp:
Jun 17, 2011, 10:49:17 AM (14 years ago)
Author:
emillour
Message:

Mars GCM:

Updates and corrections (to enable compiling/running in debug mode with

ifort)

  • removed option "-free-form" from makegcm_ifort and set mod_loc_dir="." so that module files (produced in local directory by ifort) are moved to LIBO
  • updated initracer.F, physdem1.F, physiq.F, inichim_newstart.F to avoid referencing out-of-bound array indexes (even if unused)
  • cosmetic updates on inwrite.F, datareadnc.F
  • updated newstart.F to initialize and use 'datadir' when looking for files
  • corrected bug on interpolation of sub-surface temperatures in lect_start_archive.F

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_ifort

    r148 r164  
    2222# default LMDGCM to where makegcm script is located:
    2323#setenv LMDGCM "`dirname $0`"
     24setenv LMDGCM /san/home/millour/Planeto/test_mars_141/LMDZ.MARS
    2425# You may set LIBOGCM to something else; otherwise we default to:
    25 #setenv LIBOGCM $LMDGCM/libo
     26setenv LIBOGCM $LMDGCM/libo
    2627## NetCDF Libraries: what follows is OK on GNOME
    27 #  setenv NCDFLIB /usr/local/lib
    28 #  setenv NCDFINC /usr/local/include
     28  setenv NCDFLIB /usr/local/lib
     29  setenv NCDFINC /usr/local/include
    2930####
    3031
     
    180181   set optimtru90=" -O2 -ip -mkl=sequential -align common "
    181182#   set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic "
    182    set mod_loc_dir=$LIBOGCM
     183#   set mod_loc_dir=$LIBOGCM
     184# ifort puts mod files in local directory
     185   set mod_loc_dir="."
    183186   set mod_suffix=mod
    184187else if $NEC then
     
    709712 set optim="$optim -I${libo}"
    710713 set optim90="$optim90 -I${libo}"
    711  set optimtru90="$optimtru90 -ffree-form -I${libo}"
     714 set optimtru90="$optimtru90 -I${libo}"
    712715# Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above)
    713716# set mod_loc_dir=$libo
Note: See TracChangeset for help on using the changeset viewer.