Changeset 11492


Ignore:
Timestamp:
02/21/12 16:23:56 (13 years ago)
Author:
Eric.Larour
Message:

Windows specific changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/startup.m

    r11454 r11492  
    2626
    2727%ISSM path
    28 addpath([ISSM_TIER '/src/m/utils/']); %loads recursivepath
    29 addpath([ISSM_TIER '/doc']);
    30 addpath([ISSM_TIER '/bin']);
    31 addpath(recursivepath([ISSM_TIER '/src/m']));
    32 addpath(recursivepath([ISSM_TIER '/externalpackages/scotch']));
    33 addpath(recursivepath([ISSM_TIER '/externalpackages/canos']));
    34 addpath(recursivepath([ISSM_TIER '/externalpackages/kml']));
    35 addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/']));
    36 addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig']));
     28addpath(pwd); %add current path first
     29
     30if exist([ISSM_TIER '/src/m/utils/'],'dir'),
     31        addpath([ISSM_TIER '/src/m/utils/']); %loads recursivepath
     32end
     33if exist([ISSM_TIER '/doc'],'dir'),
     34        addpath([ISSM_TIER '/doc']);
     35end
     36if exist([ISSM_TIER '/bin'],'dir'),
     37        addpath([ISSM_TIER '/bin']);
     38end
     39if exist([ISSM_TIER '/src/m'],'dir'),
     40        addpath(recursivepath([ISSM_TIER '/src/m']));
     41end
     42if exist([ISSM_TIER '/externalpackages/scotch'],'dir'),
     43        addpath(recursivepath([ISSM_TIER '/externalpackages/scotch']));
     44end
     45if exist([ISSM_TIER '/externalpackages/canos'],'dir'),
     46        addpath(recursivepath([ISSM_TIER '/externalpackages/canos']));
     47end
     48if exist([ISSM_TIER '/externalpackages/kml'],'dir'),
     49        addpath(recursivepath([ISSM_TIER '/externalpackages/kml']));
     50end
     51if exist([ISSM_TIER '/externalpackages/googleearthtoolbox/'],'dir'),
     52        addpath(recursivepath([ISSM_TIER '/externalpackages/googleearthtoolbox/']));
     53end
     54if exist([ISSM_TIER '/externalpackages/export_fig'],'dir'),
     55        addpath(recursivepath([ISSM_TIER '/externalpackages/export_fig']));
     56end
    3757clear ISSM_TIER;
    3858
     
    4767%  deal with Matlab bug (on Linux, not WinXP) -- unless
    4868%  the class has been called, "empty" method can not be found
    49 normal_uncertain;
    50 continuous_design;
    51 continuous_state;
    52 linear_inequality_constraint;
    53 linear_equality_constraint;
    54 response_function;
    55 objective_function;
    56 least_squares_term;
    57 nonlinear_inequality_constraint;
    58 nonlinear_equality_constraint;
    59 clear ans;
     69if ~ispc,
     70        normal_uncertain;
     71        continuous_design;
     72        continuous_state;
     73        linear_inequality_constraint;
     74        linear_equality_constraint;
     75        response_function;
     76        objective_function;
     77        least_squares_term;
     78        nonlinear_inequality_constraint;
     79        nonlinear_equality_constraint;
     80        clear ans;
     81end
    6082
    6183%disable matlab bell!
     
    6486% no warning if we try to plot while in nojvm (will not be supported in future releases)
    6587warning off MATLAB:HandleGraphics:noJVM
     88
     89%at the end, get to tests directory if ISSM_TESTS exists:
     90if ispc,
     91        addpath([pwd '\bin']);
     92        ISSM_TESTS=getenv('ISSM_TESTS');
     93        if ~isempty(ISSM_TESTS),
     94                cd(ISSM_TESTS);
     95        end
     96end
Note: See TracChangeset for help on using the changeset viewer.