source: src/bin/mpqc/ccarunproc@ 52aacc

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).

  • simply added all files.
  • 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
9mpqc=$1 && shift
10messagegrp=$1 && shift
11threadgrp=$1 && shift
12memorygrp=$1 && shift
13integral=$1 && shift
14results=$1 && shift
15
16function 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
27if [ "$messagegrp" != none ]; then
28 export MESSAGEGRP=`isodecode $messagegrp`
29fi
30
31if [ "$threadgrp" != none ]; then
32 export THREADGRP=`isodecode $threadgrp`
33fi
34
35if [ "$memorygrp" != none ]; then
36 export MEMORYGRP=`isodecode $memorygrp`
37fi
38
39if [ "$integral" != none ]; then
40 export INTEGRAL=`isodecode $integral`
41fi
42
43if [ "$results" != none ]; then
44 export CCACHEM_RESULTS_DIR=`isodecode $results`
45fi
46
47$mpqc $*
48
Note: See TracBrowser for help on using the repository browser.