Changeset 10243


Ignore:
Timestamp:
10/19/11 14:56:15 (13 years ago)
Author:
Mathieu Morlighem
Message:

Better loadmodel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/model/model.m

    r10184 r10243  
    144144                         if isfield(structmd,'gridonwater'), md.mask.vertexonwater=structmd.gridonwater; end
    145145                         if isfield(structmd,'gridonboundary'), md.mesh.vertexonboundary=structmd.gridonboundary; end
    146                          if isfield(structmd,'petscoptions'), md.solver=structmd.petscoptions; end
     146                         if isfield(structmd,'petscoptions') & ~isempty(structmd.petscoptions), md.solver=structmd.petscoptions; end
    147147                         if isfield(structmd,'g'), md.constants.g=structmd.g; end
    148148                         if isfield(structmd,'yts'), md.constants.yts=structmd.yts; end
Note: See TracChangeset for help on using the changeset viewer.