Changeset 2458 for modipsl


Ignore:
Timestamp:
04/01/15 16:07:46 (10 years ago)
Author:
acosce
Message:

Take in account different configuration IPSLCM6 to create the makefile (IPSLCM6*)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_make

    r2202 r2458  
    180180if [ -d ${d_n}/../oasis3-mct ] ;  
    181181then 
    182     mk_dir=$(cd ${d_n}/../oasis3-mct;/bin/pwd;); 
    183         l_make=$(find ${d_n}/../config/IPSLCM6/SOURCES/OASIS3-MCT -maxdepth 1 -name "make*" -print) 
    184             W_X1="COUPLE          =" 
    185             for j in ${l_make} 
    186             do   
    187                 cp ${j} ${d_n}/../config/IPSLCM6/SOURCES/OASIS3-MCT/mk3.$$ 
    188                 sed -e "s!^${W_X1}.*!${W_X1} ${mk_dir}!" ${d_n}/../config/IPSLCM6/SOURCES/OASIS3-MCT/mk3.$$ > ${j} 
    189                 rm -f ${d_n}/../config/IPSLCM6/SOURCES/OASIS3-MCT/mk3.$$ 
    190             done 
     182    l_dir=$(find ${d_n}/../config  -maxdepth 1 -name "IPSLCM6*" -print) 
     183    for i in ${l_dir} 
     184    do  
     185        mk_dir=$(cd ${d_n}/../oasis3-mct;/bin/pwd;); 
     186        l_make=$(find ${i}/SOURCES/OASIS3-MCT -maxdepth 1 -name "make*" -print) 
     187        W_X1="COUPLE          =" 
     188        for j in ${l_make} 
     189        do       
     190            cp ${j} ${i}/SOURCES/OASIS3-MCT/mk3.$$ 
     191            sed -e "s!^${W_X1}.*!${W_X1} ${mk_dir}!" ${i}/SOURCES/OASIS3-MCT/mk3.$$ > ${j} 
     192            rm -f ${i}/SOURCES/OASIS3-MCT/mk3.$$ 
     193        done 
     194    done 
     195 
    191196fi 
    192197# Creating environment file  
Note: See TracChangeset for help on using the changeset viewer.