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/verbose.js

    r19787 r19791  
    4343
    4444                } // }}}
     45                this.marshall=function(md,fid) { //{{{
     46                        WriteData(fid,'data',this.VerboseToBinary(),'enum',VerboseEnum(),'format','Integer');
     47                }//}}}
     48                this.VerboseToBinary = function () { //{{{
     49
     50                        //BEGINVERB2BIN
     51                        var binary=0;
     52                        if (verbose.mprocessor) binary=Math.bitOr(binary1);
     53                        if (verbose.module) binary=Math.bitOr(binary2);
     54                        if (verbose.solution) binary=Math.bitOr(binary4);
     55                        if (verbose.solver) binary=Math.bitOr(binary8);
     56                        if (verbose.convergence) binary=Math.bitOr(binary16);
     57                        if (verbose.control) binary=Math.bitOr(binary32);
     58                        if (verbose.qmu) binary=Math.bitOr(binary64);
     59                        if (verbose.autodiff) binary=Math.bitOr(binary128);
     60                        if (verbose.smb) binary=Math.bitOr(binary256);
     61                        //ENDVERB2BIN
     62                        return binary;
     63
     64                } //}}}
    4565        //properties
    4666        // {{{
Note: See TracChangeset for help on using the changeset viewer.