/[MITgcm]/MITgcm_contrib/test_scripts/ref_machine/setenv_OpenAD.csh
ViewVC logotype

Contents of /MITgcm_contrib/test_scripts/ref_machine/setenv_OpenAD.csh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Jan 30 15:11:39 2018 UTC (7 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/x-csh
modified from: MITgcm/tools/example_scripts/ref_machine

1 #!/bin/csh
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ref_machine/setenv_OpenAD.csh,v 1.1 2017/05/09 00:56:08 jmc Exp $
4 # $Name: $
5
6 ##########################################################
7 # This file is part of OpenAD released under the LGPL. #
8 # The full COPYRIGHT notice can be found in the top #
9 # level directory of the OpenAD distribution #
10 ##########################################################
11
12 # this set some env. vars such as "OPENADROOT"
13 # (needed to generate and use Makefile)
14
15 #./tools/setenv/setenv.py --shell=csh > setenv.tmp~
16 set tmp_file="/tmp/setenv_OpenAD.$$"
17 #echo $tmp_file
18
19 set s1_file=$HOME/OpenAD/tools/setenv/setenv.py
20 set s2_file=/scratch/heimbach/OpenAD/tools/setenv/setenv.py
21 if ( -f $s1_file ) then
22 set settings=$s1_file
23 else
24 if ( -f $s2_file ) then
25 set settings=$s2_file
26 else
27 echo "Error: missing file OpenAD/tools/setenv/setenv.py"
28 exit 1
29 endif
30 endif
31 echo "settings='$settings'"
32
33 $settings --shell=csh > $tmp_file
34 if ( $status != 0 ) then
35 echo "Error executing: ./tools/setenv/setenv.py --shell=csh > $tmp_file"
36 else
37 source $tmp_file
38 if ( $status != 0 ) then
39 echo "Error executing: source $tmp_file"
40 else
41 rm -f $tmp_file
42 endif
43 endif

  ViewVC Help
Powered by ViewVC 1.1.22