Changeset 4931 for IOIPSL


Ignore:
Timestamp:
02/13/20 11:27:35 (4 years ago)
Author:
jgipsl
Message:

Copied ins_m_prec from modipsl/util into IOIPSL/trunk folder. Adapt the script for the path to def.prec file. Launch this script from makeioipsl_fcm.

This has been done to make the compilation script makeioipsl_fcm independent of script in util folder. In the standard method using a main Makefile created by ins_make: ins_m_prec is launched by ins_make which is launched my model script in util. Now when using a main compilation script, ins_make is not needed anymore.

Location:
IOIPSL/trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • IOIPSL/trunk/ins_m_prec

    r4930 r4931  
    7171    echo '--- Real    precision  : '${x_r}; } 
    7272#- 
    73 dp_d=${d_n}'/../modeles/IOIPSL/src'; 
    74 #- 
    75 dp_b="${dp_d}"'/def.prec' 
     73dp_b='src/def.prec' 
    7674[[ ! -f "${dp_b}" ]] && { echo "${dp_b} unreachable ..."; exit 3; } 
    7775sed -e "s/i_std=i_?/i_std=i_${x_i}/" \ 
     
    8179# if the default precision has been modified 
    8280#- 
    83 dp_p="${dp_d}"'/defprec.f90'; 
     81dp_p='src/defprec.f90'; 
    8482diff -q wmpf.$$ ${dp_p} > /dev/null 2>&1; r_c=${?}; 
    8583[[ ${r_c} != 0 ]] && cp -p wmpf.$$ ${dp_p}; 
     
    9189  echo " "; } 
    9290#- 
    93 unset dp_d dp_b dp_p x_v x_i x_r; rm -f wmpf.$$; 
     91unset dp_b dp_p x_v x_i x_r; rm -f wmpf.$$; 
    9492#- 
    9593exit 0; 
  • IOIPSL/trunk/makeioipsl_fcm

    r4924 r4931  
    6464done 
    6565 
     66# Create module defprec.90 using def.prec 
     67# Double precision is used (default mode) 
     68./ins_m_prec 
     69 
     70# Define arch files 
    6671rm -f .void_file 
    6772echo > .void_file 
Note: See TracChangeset for help on using the changeset viewer.