Changeset 22413


Ignore:
Timestamp:
02/12/18 09:08:53 (7 years ago)
Author:
seroussi
Message:

CHG: marshalling lat/long for when oceancoupling activated (needed to interpolate with their coordinate system)

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

Legend:

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

    r22323 r22413  
    147147                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','segments','format','DoubleMat','mattype',3);
    148148                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','scale_factor','format','DoubleMat','mattype',1);
     149                        if md.transient.isoceancoupling, %Need to add lat/long coordinates to couple with ocean as they rely on lat/long coordinate system
     150                                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','lat','format','DoubleMat','mattype',1);
     151                                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','long','format','DoubleMat','mattype',1);
     152                        end
    149153                end % }}}
    150154                function t = domaintype(self) % {{{
  • issm/trunk-jpl/src/m/classes/mesh2d.py

    r22328 r22413  
    128128                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','segments','format','DoubleMat','mattype',3)
    129129                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','scale_factor','format','DoubleMat','mattype',1)
     130                if md.transient.isoceancoupling:
     131                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','lat','format','DoubleMat','mattype',1)
     132                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','long','format','DoubleMat','mattype',1)
    130133        # }}}
  • issm/trunk-jpl/src/m/classes/mesh3dprisms.m

    r22323 r22413  
    187187                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','numberofelements2d','format','Integer');
    188188                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','scale_factor','format','DoubleMat','mattype',1);
     189                        if md.transient.isoceancoupling,
     190                                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','lat','format','DoubleMat','mattype',1);
     191                                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','long','format','DoubleMat','mattype',1);
     192                        end
    189193                end % }}}
    190194                function type = domaintype(self) % {{{
  • issm/trunk-jpl/src/m/classes/mesh3dprisms.py

    r22329 r22413  
    154154                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','numberofelements2d','format','Integer')
    155155                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','scale_factor','format','DoubleMat','mattype',1)
     156                if md.transient.isoceancoupling:
     157                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','lat','format','DoubleMat','mattype',1)
     158                        WriteData(fid,prefix,'object',self,'class','mesh','fieldname','long','format','DoubleMat','mattype',1)
    156159        # }}}
Note: See TracChangeset for help on using the changeset viewer.