/[MITgcm]/MITgcm_contrib/gael/setup_gcmfaces_and_mitprof.csh
ViewVC logotype

Diff of /MITgcm_contrib/gael/setup_gcmfaces_and_mitprof.csh

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

revision 1.6 by gforget, Fri Aug 5 21:44:32 2011 UTC revision 1.10 by gforget, Fri Oct 16 21:48:27 2015 UTC
# Line 28  endif Line 28  endif
28  setenv CVS_RSH ssh  setenv CVS_RSH ssh
29  cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d gcmfaces MITgcm_contrib/gael/matlab_class  cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d gcmfaces MITgcm_contrib/gael/matlab_class
30  cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack  co -P -d MITprof MITgcm_contrib/gael/profilesMatlabProcessing  cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack  co -P -d MITprof MITgcm_contrib/gael/profilesMatlabProcessing
31    cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack  co -P -d GRID MITgcm_contrib/gael/GRID
32    cvs -Q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack  co -P -d OCCAetcONv4GRID MITgcm_contrib/gael/OCCAetcONv4GRID
33    
34  if !( -d gcmfaces) then  if !( -d gcmfaces) then
35    echo ''    echo ''
# Line 47  echo '---- To test run the programs, we Line 49  echo '---- To test run the programs, we
49  echo '---- This should take a couple minutes.'  echo '---- This should take a couple minutes.'
50  echo ''  echo ''
51    
52  wget -q http://mitgcm.org/~gforget/sample_input.tar.gz  mkdir gcmfaces/sample_input
53  gunzip sample_input.tar.gz  
54  tar xf sample_input.tar  mv OCCAetcONv4GRID gcmfaces/sample_input/.
55  mv sample_input gcmfaces/.  
56  rm -f sample_input.tar  wget --recursive ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/nctiles_climatology/ETAN
57    
58    mv mit.ecco-group.org/ecco_for_las/version_4/release1/nctiles_climatology gcmfaces/sample_input/.
59    rm -rf mit.ecco-group.org
60    
61  echo ''  echo ''
62  echo '---- Now a matlab session will start, and test run the programs.'  echo '---- Now a matlab session will start, and test run the programs.'
# Line 68  matlab -nojvm -nodisplay << EOF Line 73  matlab -nojvm -nodisplay << EOF
73    myenv.verbose=1;    myenv.verbose=1;
74    myenv.lessplot=1;    myenv.lessplot=1;
75    myenv.lesstest=1;    myenv.lesstest=1;
   gcmfaces_init;  
76    cd ..;    cd ..;
77    
78      gcmfaces_init;
79    
80    %test MITprof:    %test MITprof:
81    is_netcdf_avail=~isempty(which('ncexample'))|~isempty(which('netcdf.create'));    is_netcdf_avail=~isempty(which('ncexample'))|~isempty(which('netcdf.create'));
82    is_netcdf_redundant=~isempty(which('ncexample'))&~isempty(which('netcdf.create'));    is_netcdf_redundant=~isempty(which('ncexample'))&~isempty(which('netcdf.create'));
# Line 83  matlab -nojvm -nodisplay << EOF Line 89  matlab -nojvm -nodisplay << EOF
89      fprintf('\n !!!! Error: Using MITprof cannot be \n used until you get the netcdf toolbox.\n');      fprintf('\n !!!! Error: Using MITprof cannot be \n used until you get the netcdf toolbox.\n');
90    else;    else;
91      cd MITprof;      cd MITprof;
     global MITprof_verbose; MITprof_verbose=0;  
92      profiles_process_init;      profiles_process_init;
93      cd ..;      cd ..;
94    end;    end;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22