Changeset 27575


Ignore:
Timestamp:
02/15/23 12:04:14 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: load vx_obs only if it exists

File:
1 edited

Legend:

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

    r27430 r27575  
    810810                        nodestoflag2=Pnode(nodestoflag1);
    811811                        if numel(md1.stressbalance.spcvx)>1 & numel(md1.stressbalance.spcvy)>1 & numel(md1.stressbalance.spcvz)>1,
    812                                 if numel(md1.inversion.vx_obs)>1 & numel(md1.inversion.vy_obs)>1
     812                                if isfield(md1.inversion,'vx_obs') & numel(md1.inversion.vx_obs)>1 & numel(md1.inversion.vy_obs)>1
    813813                                        md2.stressbalance.spcvx(nodestoflag2)=md2.inversion.vx_obs(nodestoflag2);
    814814                                        md2.stressbalance.spcvy(nodestoflag2)=md2.inversion.vy_obs(nodestoflag2);
Note: See TracChangeset for help on using the changeset viewer.