Ignore:
Timestamp:
Aug 4, 2008 3:39:12 PM (16 years ago)
Author:
letzel
Message:
  • mrun: (optionally) link local input
  • diffusion_s: bugfix for calculation of horizontal fluxes at vertical walls
  • NCL scripts in trunk/SCRIPTS/NCL updated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r182 r183  
    147147     #                     adjustments for lcxt4 (Bergen Center for Computational
    148148     #                     Science)
     149     # 22/05/08 - Marcus - If environment variable link_local_input is set to
     150     #                     true, mrun tries "ln -f" on local input and resorts
     151     #                     to "cp" or "cp -r" on error
    149152     # 27/05/08 - Siggi  - PATH is set to PALM_BIN everywhere (missing so far)
    150153     # 14/07/08 - Siggi  - adjustments for lcsgih
    151 
    152154 
    153155    # VARIABLENVEREINBARUNGEN + DEFAULTWERTE
     
    196198 job_on_file=""
    197199 keep_data_from_previous_run=false
     200 link_local_input=false
    198201 link_local_output=false
    199202 localhost_realname=$(hostname)
     
    25392542                printf "\n      providing $numprocs files for the respective processors"
    25402543                mkdir  ${localin[$i]}
    2541                 cp -r  ${absnamein[$i]}/*  ${localin[$i]}
     2544                if [[ $link_local_input = true ]]
     2545                    then
     2546                    printf "      using ln -f\n"
     2547                    cd ${absnamein[$i]}
     2548                    for file in $(ls *)
     2549                      do
     2550                      ln -f $file  ${localin[$i]}
     2551                    done
     2552                    cd $TEMPDIR
     2553                fi
     2554                # If "ln -f" fails of if "$link_local_input = false" do a normal "cp -r"
     2555                if [[ ! -f "${localin[$i]}/_0000" ]]
     2556                    then
     2557                    if [[ $link_local_input = true ]]
     2558                        then
     2559                        printf "      ln failed for .../_0000, using cp...\n"
     2560                    fi
     2561                    cp -r  ${absnamein[$i]}/*  ${localin[$i]}
     2562                fi
    25422563
    25432564             else
    25442565                   # BEREITSTELLUNG AUF EINPROZESSORRECHNERN
    2545                 cp  ${absnamein[$i]}  ${localin[$i]}
     2566                if [[ $link_local_input = true ]]
     2567                then
     2568                    printf "      using ln -f\n"
     2569                    ln -f  ${absnamein[$i]}  ${localin[$i]}
     2570                fi
     2571                # If "ln -f" fails of if "$link_local_input = false" do a normal "cp"
     2572                if [[ ! -f "${localin[$i]}" ]]
     2573                then
     2574                    if [[ $link_local_input = true ]]
     2575                    then
     2576                        printf "      ln failed, using cp...\n"
     2577                    fi
     2578                    cp  ${absnamein[$i]}  ${localin[$i]}
     2579                fi
    25462580             fi
    25472581          fi
Note: See TracChangeset for help on using the changeset viewer.