Changeset 20844


Ignore:
Timestamp:
07/01/16 22:46:21 (9 years ago)
Author:
Eric.Larour
Message:

CHG: folds are back

File:
1 edited

Legend:

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

    r20843 r20844  
    55
    66function mesh3dprisms() {
    7                 this.setdefaultparameters = function() { //{{{
     7                this.setdefaultparameters = function() { // {{{)
    88
    99                        //the connectivity is the averaged number of nodes linked to a
     
    1414                        this.average_vertex_connectivity=25;
    1515                } // }}}
    16 
    17                 this.checkconsistency = function(md,solution,analyses) { // {{{
     16                this.checkconsistency = function(md,solution,analyses) { //{{{[)
    1817
    1918                        checkfield(md,'fieldname','mesh.x','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices, 1]);
     
    3635                        checkfield(md,'fieldname','mesh.average_vertex_connectivity','>=',24,'message','\'mesh.average_vertex_connectivity\' should be at least 24 in 3d');
    3736                } // }}}
    38                 this.disp = function() { // {{{
     37                this.disp = function()  { // {{{
    3938                        console.log(sprintf('   3D prism Mesh:'));
    4039
     
    7877                } // }}}
    7978                this.marshall = function(md,prefix,fid) { // {{{
    80                         WriteData(fid,prefix,'enum',DomainTypeEnum(),'data',StringToEnum(['Domain' + this.domaintype()]),'format','Integer');
    81                         WriteData(fid,prefix,'enum',DomainDimensionEnum(),'data',this.dimension(),'format','Integer');
    82                         WriteData(fid,prefix,'enum',MeshElementtypeEnum(),'data',StringToEnum(this.elementtype()),'format','Integer');
     79                        WriteData(fid,prefix,'name','md.mesh.domain_type','data',StringToEnum('Domain' + this.domaintype()),'format','Integer');
     80                        WriteData(fid,prefix,'name','md.mesh.domain_dimension','data',this.dimension(),'format','Integer');
     81                        WriteData(fid,prefix,'name','md.mesh.elementtype','data',StringToEnum(this.elementtype()),'format','Integer');
    8382                        WriteData(fid,prefix,'object',this,'class','mesh','fieldname','x','format','DoubleMat','mattype',1);
    8483                        WriteData(fid,prefix,'object',this,'class','mesh','fieldname','y','format','DoubleMat','mattype',1);
     
    111110            this.long=NaNFix(this.long,NaN);
    112111        }//}}}
    113                 this.domaintype = function() { // {{{
     112                this.domaintype = function() { // {{{)
    114113                        return '3D';
    115114                } // }}}
    116                 this.dimension = function() { // {{{
     115                this.dimension = function() { // {{{)
    117116                        return 3;
    118117                } // }}}
    119                 this.elementtype = function() { // {{{
     118                this.elementtype = function() { // {{{)
    120119                        return 'Penta';
    121120                } // }}}
     
    124123        } //}}}
    125124
    126         //properties
    127         //{{{
     125        //properties (SetAccess=public)
    128126        this.x                           = NaN;
    129127        this.y                           = NaN;
     
    158156        this.extractedvertices           = NaN;
    159157        this.extractedelements           = NaN;
    160         //}}}
    161158}
Note: See TracChangeset for help on using the changeset viewer.