Changes between Initial Version and Version 1 of Ticket #2133, comment 23


Ignore:
Timestamp:
2018-11-15T17:32:34+01:00 (21 months ago)
Author:
smasson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2133, comment 23

    initial v1  
    44dev_r10164_HPC09_ESIWACE_PREP_MERGE: action 2: add generic glob_min/max/sum and locmin/max, complete timing and report (including bdy and icb), see #2133 
    55}}} 
     6 
     7Get back the possibility to compile and run without key_mpp_mpi [[BR]] 
     8 
     9In action 2a, we used the following script to automatically modify (almost) all the calls to lbc_lnk, lbc_bdy_lnk, mpp_min/max/sum, mpp_min/maxloc and glob_min/max/sum 
     10 
     11{{{#!bash 
     12set -u 
     13 
     14for dd in $( find . -wholename "*/MY_SRC" ) $( find src -type d | grep -v svn ) 
     15do 
     16    cd $dd 
     17    pwd 
     18    echo 
     19    for file in `grep -i "call  *lbc_lnk *( *[a-zA-Z_0-9]" * | awk '{print $1}' | sed s/\:'.*'// | uniq` 
     20    do 
     21        routinename=` echo $file | sed s/\\\.'.*'//` 
     22        sed -e "s/ lbc_lnk\( *\)(\( *\)\([a-zA-Z_0-9]\)/ lbc_lnk\1(\2\'${routinename}\', \3/g"              \ 
     23            -e "s/ lbc_lnk_multi\( *\)(\( *\)\([a-zA-Z_0-9]\)/ lbc_lnk_multi\1(\2\'${routinename}\', \3/g"  \ 
     24            $file > toto 
     25        mv toto $file 
     26        echo $file done 
     27    done 
     28    for file in `grep -i "call  *lbc_bdy_lnk *( *[a-zA-Z_0-9]" * | awk '{print $1}' | sed s/\:'.*'// | uniq` 
     29    do 
     30        routinename=` echo $file | sed s/\\\.'.*'//` 
     31        sed -e "s/ lbc_bdy_lnk\( *\)(\( *\)\([a-zA-Z_0-9]\)/ lbc_bdy_lnk\1(\2\'${routinename}\', \3/g"  \ 
     32            $file > toto 
     33        mv toto $file 
     34        echo $file done 
     35    done 
     36    for file in `grep -i "call  *mpp_... *( *[a-zA-Z_0-9]" * | awk '{print $1}' | sed s/\:'.*'// | uniq | grep -v lib_fortran_generic.h90` 
     37    do 
     38        routinename=` echo $file | sed s/\\\.'.*'//` 
     39        sed -e "s/ mpp_min\( *\)(\( *\)\([a-zA-Z_0-9]\)/ mpp_min\1(\2\'${routinename}\', \3/g" \ 
     40            -e "s/ mpp_max\( *\)(\( *\)\([a-zA-Z_0-9]\)/ mpp_max\1(\2\'${routinename}\', \3/g" \ 
     41            -e "s/ mpp_sum\( *\)(\( *\)\([a-zA-Z_0-9]\)/ mpp_sum\1(\2\'${routinename}\', \3/g" \ 
     42            $file > toto 
     43        mv toto $file 
     44        echo $file done 
     45    done 
     46    for file in `grep -i "call  *mpp_...loc *( *[a-zA-Z_0-9]" * | awk '{print $1}' | sed s/\:'.*'// | uniq` 
     47    do 
     48        routinename=` echo $file | sed s/\\\.'.*'//` 
     49        sed -e "s/ mpp_minloc\( *\)(\( *\)\([a-zA-Z_0-9]\)/ mpp_minloc\1(\2\'${routinename}\', \3/g" \ 
     50            -e "s/ mpp_maxloc\( *\)(\( *\)\([a-zA-Z_0-9]\)/ mpp_maxloc\1(\2\'${routinename}\', \3/g" \ 
     51            $file > toto 
     52        mv toto $file 
     53        echo $file done 
     54    done 
     55    for file in `grep -i "glob_... *( *[a-zA-Z_0-9(]" * | awk '{print $1}' | sed s/\:'.*'// | uniq` 
     56    do 
     57        routinename=` echo $file | sed s/\\\.'.*'//` 
     58        sed -e "s/ glob_min\( *\)(\( *\)\([a-zA-Z_0-9(]\)/ glob_min\1(\2\'${routinename}\', \3/g" \ 
     59            -e "s/ glob_max\( *\)(\( *\)\([a-zA-Z_0-9(]\)/ glob_max\1(\2\'${routinename}\', \3/g" \ 
     60            -e "s/ glob_sum\( *\)(\( *\)\([a-zA-Z_0-9(]\)/ glob_sum\1(\2\'${routinename}\', \3/g" \ 
     61            -e "s/ glob_sum_full\( *\)(\( *\)\([a-zA-Z_0-9(]\)/ glob_sum_full\1(\2\'${routinename}\', \3/g" \ 
     62            $file > toto 
     63        mv toto $file 
     64        echo $file done 
     65    done 
     66    echo 
     67    cd - 
     68done 
     69}}}