/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_init.m
ViewVC logotype

Diff of /MITgcm_contrib/gael/matlab_class/gcmfaces_init.m

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

revision 1.1 by gforget, Sun May 2 20:41:14 2010 UTC revision 1.15 by gforget, Mon Jan 11 17:28:10 2016 UTC
# Line 1  Line 1 
1    
2  global mydir; mydir=[pwd '/'];  gcmfaces_global;
3    
4  fid=fopen([mydir 'gcmfaces_path.m'],'wt');  warning('off','MATLAB:HandleGraphics:noJVM');
 fprintf(fid,['global mydir; mydir=''' mydir ''';\n']);  
 fprintf(fid,['addpath ' mydir ';\n']);  
 fprintf(fid,['addpath ' mydir 'gcmfaces_specs/;\n']);  
 fprintf(fid,['addpath ' mydir 'gcmfaces_IO/;\n']);  
 fprintf(fid,['addpath ' mydir 'gcmfaces_misc/;\n']);  
 fprintf(fid,['addpath ' mydir 'gcmfaces_calc/;\n']);  
 fprintf(fid,['addpath ' mydir 'gcmfaces_smooth/;\n']);  
 %fprintf(fid,['addpath ' mydir 'gcmfaces_legacy/;\n']);  
 %fprintf(fid,['addpath ' mydir 'gcmfaces_devel/;\n']);  
 fprintf(fid,['addpath ' mydir 'sample_analysis/;\n']);  
 fprintf(fid,['addpath ' mydir 'sample_processing/;\n']);  
 fclose(fid);  
   
 fprintf('\n\n\n***********message from gcmfaces_init.m************ \n');  
 fprintf(' gcmfaces_path.m was created that, when executed, \n');  
 fprintf(' adds the gcmfaces directories to your path  \n\n\n');  
 fprintf(' ultimately you may want to copy it in your startup.m \n');  
   
 gcmfaces_path;  
   
 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');  
 fprintf(' starting 1st example routine: plot_one_field ... \n');  
   
 plot_one_field;  
   
 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');  
 fprintf(' starting 2nd example routine: plot_std_field ... \n');  
5    
6    if myenv.verbose;
7        fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
8        fprintf(' starting basic test : plot_std_field ... \n');
9    end;
10  plot_std_field;  plot_std_field;
11    
12  fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');  if ~myenv.lessplot;
13  fprintf(' >>> initialization of gcmfaces completed correctly \n');      if myenv.verbose;
14  fprintf(' >>> you are all set and may now use the gcmfaces package \n');          fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
15  fprintf(' >>> eventually, to avoid running gcmfaces_init over again \n');          fprintf(' starting plot test: plot_one_field ... \n');
16  fprintf('  you may want to copy the gcmfaces_path.m code to your startup.m \n\n\n');      end;
17        plot_one_field;
18    end;
19    
20    if myenv.verbose;
21        fprintf('\n\n\n***********message from gcmfaces_init.m************\n');
22        fprintf(' --- initialization of gcmfaces completed correctly \n');
23        fprintf(' --- you are all set and may now use the gcmfaces package. \n\n\n');
24    end;
25    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22