Candidate_v1.6.1
Candidate_v1.7.0
stable
| 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 |
|
|---|
| 15 | function isodecode() {
|
|---|
| 16 | str=$1 && shift
|
|---|
| 17 | echo $str | sed -e 's/%20/ /g' \
|
|---|
| 18 | -e 's/%3c/</g' -e 's/%3e/>/g' \
|
|---|
| 19 | -e 's/%5b/[/g' -e 's/%5d/]/g' \
|
|---|
| 20 | -e 's/%24/$/g' \
|
|---|
| 21 | -e 's/%38/:/g' \
|
|---|
| 22 | -e 's/%28/(/g' -e 's/%29/)/g' \
|
|---|
| 23 | -e 's/%25/%/g'
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | if [ "$messagegrp" != none ]; then
|
|---|
| 27 | export MESSAGEGRP=`isodecode $messagegrp`
|
|---|
| 28 | fi
|
|---|
| 29 |
|
|---|
| 30 | if [ "$threadgrp" != none ]; then
|
|---|
| 31 | export THREADGRP=`isodecode $threadgrp`
|
|---|
| 32 | fi
|
|---|
| 33 |
|
|---|
| 34 | if [ "$memorygrp" != none ]; then
|
|---|
| 35 | export MEMORYGRP=`isodecode $memorygrp`
|
|---|
| 36 | fi
|
|---|
| 37 |
|
|---|
| 38 | if [ "$integral" != none ]; then
|
|---|
| 39 | export INTEGRAL=`isodecode $integral`
|
|---|
| 40 | fi
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | $mpqc $*
|
|---|
| 44 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.