#!/bin/csh # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/csail/setenv_OpenAD.csh,v 1.1 2014/07/17 23:11:50 jmc Exp $ # $Name: checkpoint65r $ ########################################################## # This file is part of OpenAD released under the LGPL. # # The full COPYRIGHT notice can be found in the top # # level directory of the OpenAD distribution # ########################################################## # this set some env. vars such as "OPENADROOT" # (needed to generate and use Makefile) #./tools/setenv/setenv.py --shell=csh > setenv.tmp~ set tmp_file="/tmp/setenv_OpenAD.$$" #echo $tmp_file /scratch/heimbach/OpenAD/tools/setenv/setenv.py --shell=csh > $tmp_file if ( $status != 0 ) then echo "Error executing: ./tools/setenv/setenv.py --shell=csh > $tmp_file" else source $tmp_file if ( $status != 0 ) then echo "Error executing: source $tmp_file" else rm -f $tmp_file endif endif