Changeset 22786


Ignore:
Timestamp:
05/15/18 15:28:24 (7 years ago)
Author:
seroussi
Message:

FIX: lat/long only if they exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Vertex.cpp

    r22778 r22786  
    3232        this->domaintype     = iomodel->domaintype;
    3333
    34         this->latitute     = iomodel->Data("md.mesh.lat")[i];
    35         this->longitude    = iomodel->Data("md.mesh.long")[i];
     34        if(iomodel->Data("md.mesh.lat") && iomodel->Data("md.mesh.long")){
     35                _assert_(iomodel->Data("md.mesh.lat") && iomodel->Data("md.mesh.long"));
     36                this->latitute     = iomodel->Data("md.mesh.lat")[i];
     37                this->longitude    = iomodel->Data("md.mesh.long")[i];
     38        }
    3639
    3740        switch(iomodel->domaintype){
Note: See TracChangeset for help on using the changeset viewer.