Changeset 11224


Ignore:
Timestamp:
01/26/12 13:29:12 (13 years ago)
Author:
Mathieu Morlighem
Message:

Some updates required to support matlab versions older than 7.6

Location:
issm/trunk-jpl/src/m/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/ismodelselfconsistent.m

    r11221 r11224  
    2828
    2929        %Check consistency of the object
    30         md.(field).checkconsistency(md,solution,analyses);
     30        if verLessThan('matlab', '7.6')
     31                checkconsistency(md.(field),md,solution,analyses);
     32        else
     33                md.(field).checkconsistency(md,solution,analyses);
     34        end
    3135end
    3236
  • issm/trunk-jpl/src/m/model/loadresultsfromcluster.m

    r9702 r11224  
    1313
    1414%Download outputs from the cluster
    15 cluster.Download(md);
     15if verLessThan('matlab', '7.6');
     16        Download(cluster,md);
     17else
     18        cluster.Download(md);
     19end
    1620
    1721%If we are here, no errors in the solution sequence, call loadresultsfromdisk.
  • issm/trunk-jpl/src/m/model/marshall.m

    r11221 r11224  
    3333        %Marshall current object
    3434        %disp(['marshalling ' field '...']);
    35         md.(field).marshall(fid);
     35        if verLessThan('matlab', '7.6')
     36                marshall(md.(field),fid);
     37        else
     38                md.(field).marshall(fid);
     39        end
    3640end
    3741
  • issm/trunk-jpl/src/m/model/solveparallel.m

    r9702 r11224  
    1616        c=clock; md.private.runtimename=sprintf('%s-%i-%i-%i-%i-%i-%i-%i',md.miscellaneous.name,c(2),c(3),c(1),c(4),c(5),floor(c(6)),feature('GetPid'));
    1717
    18         %Now, we need to build the queuing script, used by the cluster to launch the job.
    19         cluster.BuildQueueScript(md);
    20 
    21         %Now, launch the queueing script
    22         cluster.LaunchQueueJob(md,options);
     18        if verLessThan('matlab', '7.6')
     19                BuildQueueScript(cluster,md);
     20                LaunchQueueJob(cluster,md,options);
     21        else
     22                cluster.BuildQueueScript(md);
     23                cluster.LaunchQueueJob(md,options);
     24        end
    2325
    2426        if ~strcmpi(options.upload,'on'), %did we even try to run? if so, wait on lock
Note: See TracChangeset for help on using the changeset viewer.