1 |
function []=MITprof_global(varargin); |
function []=MITprof_global(varargin); |
2 |
%object: take care of path and global variables (mygrid and mitprofenv), |
% |
3 |
% and sends global variables to caller routine workspace |
% MITPROF_GLOBAL calls gcmfaces_global, adds MITprof paths, adds |
4 |
%notes: - in any call, if this has not yet been done, |
% defines MITprof_climdir and MITprof_griddir in myenv, and |
5 |
% this routine also adds MITprof subdirectories |
% adds myenv (global variable) to caller routine workspace |
|
% to the matlab path, and it defines mitprofenv. |
|
|
% - this routine replaces MITprof_path |
|
6 |
|
|
7 |
%get/define global variables: |
%get/define global variables: |
8 |
gcmfaces_global; |
gcmfaces_global; |
71 |
end; |
end; |
72 |
|
|
73 |
%send to workspace: |
%send to workspace: |
74 |
evalin('caller','global mygrid mitprofenv'); |
evalin('caller','global mygrid myenv'); |
75 |
|
|