Ignore:
Timestamp:
11/23/15 10:31:37 (9 years ago)
Author:
Eric.Larour
Message:

CHG: finished implementation of the marshall routine ,based on writing to a typed array buffer. No file
i/o involved at this point. Fake memory based file i/o is implemented in WriteData.js and used throughout the
classes marshall methods.

File:
1 edited

Legend:

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

    r19787 r19791  
    1919                fielddisplay(this,'cross_section_shape','1: square-edged (default). 2: elliptical.  See iedge in GiaDeflectionCore');
    2020
     21        }// }}}
     22        this.classname= function(){// {{{
     23                return "gia";
    2124        }// }}}
    2225        this.checkconsistency = function(md,solution,analyses) { // {{{
     
    4144                }
    4245        } // }}}
     46                this.marshall=function(md,fid) { //{{{
     47                        WriteData(fid,'object',this,'fieldname','mantle_viscosity','format','DoubleMat','mattype',1);
     48                        WriteData(fid,'object',this,'fieldname','lithosphere_thickness','format','DoubleMat','mattype',1,'scale',Math.pow(10,3)); //from km to m
     49                        WriteData(fid,'object',this,'fieldname','cross_section_shape','format','Integer');
     50                }//}}}
    4351        //properties
    4452        // {{{
Note: See TracChangeset for help on using the changeset viewer.