|
Last change
on this file since 52aacc was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago |
|
Initial commit based on 3.0.0alpha (here claimed as 2.4).
|
-
Property mode
set to
100755
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | # This script starts up a single MPI process.
|
|---|
| 4 | # It is used in parallel environments where it
|
|---|
| 5 | # is difficult to set up environment variables
|
|---|
| 6 | # or command line arguments that contain special
|
|---|
| 7 | # shell characters.
|
|---|
| 8 |
|
|---|
| 9 | mpqc=$1 && shift
|
|---|
| 10 | messagegrp=$1 && shift
|
|---|
| 11 | threadgrp=$1 && shift
|
|---|
| 12 | memorygrp=$1 && shift
|
|---|
| 13 | integral=$1 && shift
|
|---|
| 14 | results=$1 && shift
|
|---|
| 15 |
|
|---|
| 16 | function isodecode() {
|
|---|
| 17 | str=$1 && shift
|
|---|
| 18 | echo $str | sed -e 's/%20/ /g' \
|
|---|
| 19 | -e 's/%3c/</g' -e 's/%3e/>/g' \
|
|---|
| 20 | -e 's/%5b/[/g' -e 's/%5d/]/g' \
|
|---|
| 21 | -e 's/%24/$/g' \
|
|---|
| 22 | -e 's/%38/:/g' \
|
|---|
| 23 | -e 's/%28/(/g' -e 's/%29/)/g' \
|
|---|
| 24 | -e 's/%25/%/g'
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | if [ "$messagegrp" != none ]; then
|
|---|
| 28 | export MESSAGEGRP=`isodecode $messagegrp`
|
|---|
| 29 | fi
|
|---|
| 30 |
|
|---|
| 31 | if [ "$threadgrp" != none ]; then
|
|---|
| 32 | export THREADGRP=`isodecode $threadgrp`
|
|---|
| 33 | fi
|
|---|
| 34 |
|
|---|
| 35 | if [ "$memorygrp" != none ]; then
|
|---|
| 36 | export MEMORYGRP=`isodecode $memorygrp`
|
|---|
| 37 | fi
|
|---|
| 38 |
|
|---|
| 39 | if [ "$integral" != none ]; then
|
|---|
| 40 | export INTEGRAL=`isodecode $integral`
|
|---|
| 41 | fi
|
|---|
| 42 |
|
|---|
| 43 | if [ "$results" != none ]; then
|
|---|
| 44 | export CCACHEM_RESULTS_DIR=`isodecode $results`
|
|---|
| 45 | fi
|
|---|
| 46 |
|
|---|
| 47 | $mpqc $*
|
|---|
| 48 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.