[gmx-users] setting working directory

lina lina.lastname at gmail.com
Tue Nov 1 09:40:09 CET 2011


On Tue, Nov 1, 2011 at 3:33 PM, Efrat Exlrod <Efrat.Exlrod at biu.ac.il> wrote:
> Hi There!
>
>
>
> Is it possible to run mdrun from a shared directory and set the working
> directory to a local directory on the computer on which it runs, in order to
> decrease NFS load?

Yes. I attached a generic script, you can modify from it if you want.

##project set up by the user
GENERICNAME="Your_project_name"

## input data folder
INPUTDATAFOLDER=${HOME}/data


## cluster environment
#### shared scratch folder
SCRATCH=${HOME}/globalscracth

#### node local scratch folder
LOCALSCRATCH=${LOCALSCRATCH:-/scratch}/${USER}

## set up a unique tag suffix
JOBSUFFIX=$(date +%Y_%m_%d-%H_%M_%S-%N)-$$

## job name
JOBNAME=${GENERICNAME}-${JOBSUFFIX}


## share job working directory
JOBFOLDER=${SCRATCH}/${JOBNAME}
mkdir -p ${JOBFOLDER}

## local job working directory
LOCALJOBFOLDER=${LOCALSCRATCH}/${JOBNAME}
mkdir -p ${LOCALJOBFOLDER}

## let work on the local computer
cd ${LOCALJOBFOLDER}

## let transfert input data
cp -p ${INPUTDATAFOLDER}/*.data .

## let begin the job


## let transfert output data
mv outputdata.data ${JOBFOLDER}

## clean up the local scratch
cd ..
rm -rf ${JOBNAME}

## go home
cd

## exit
exit 0

##
## eos


>
>
>
> Thanks, Efrat
>
> --
> gmx-users mailing list    gmx-users at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>



More information about the gromacs.org_gmx-users mailing list