Changeset 19824


Ignore:
Timestamp:
11/26/15 10:51:33 (9 years ago)
Author:
Eric.Larour
Message:

CHG: private and transient are keywords in javascript, which means they can't be class names. Replaced them by trans
and priv classes in model.js.

Location:
issm/trunk-jpl
Files:
2 added
2 deleted
5 edited

Legend:

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

    r19815 r19824  
    1818                        console.log(sprintf("%19s: %-22s -- %s","friction"        ,"[1x1 " + typeof(this.friction) + "]","basal friction/drag properties"));
    1919                        console.log(sprintf("%19s: %-22s -- %s","flowequation"    ,"[1x1 " + typeof(this.flowequation) + "]","flow equations"));
    20                         console.log(sprintf("%19s: %-22s -- %s","timestepping"    ,"[1x1 " + typeof(this.timestepping) + "]","time stepping for transient models"));
     20                        console.log(sprintf("%19s: %-22s -- %s","timestepping"    ,"[1x1 " + typeof(this.timestepping) + "]","time stepping for trans models"));
    2121                        console.log(sprintf("%19s: %-22s -- %s","initialization"  ,"[1x1 " + typeof(this.initialization) + "]","initial guess/state"));
    2222                        console.log(sprintf("%19s: %-22s -- %s","rifts"           ,"[1x1 " + typeof(this.rifts) + "]","rifts properties"));
     
    3333                        console.log(sprintf("%19s: %-22s -- %s","thermal"         ,"[1x1 " + typeof(this.thermal) + "]","parameters for thermal solution"));
    3434                        console.log(sprintf("%19s: %-22s -- %s","steadystate"     ,"[1x1 " + typeof(this.steadystate) + "]","parameters for steadystate solution"));
    35                         console.log(sprintf("%19s: %-22s -- %s","transient"       ,"[1x1 " + typeof(this.transient) + "]","parameters for transient solution"));
     35                        console.log(sprintf("%19s: %-22s -- %s","trans"       ,"[1x1 " + typeof(this.trans) + "]","parameters for trans solution"));
    3636                        console.log(sprintf("%19s: %-22s -- %s","calving"         ,"[1x1 " + typeof(this.calving) + "]","parameters for calving"));
    3737                        console.log(sprintf("%19s: %-22s -- %s","gia"             ,"[1x1 " + typeof(this.gia) + "]","parameters for gia solution"));
     
    7373                        this.thermal          = new thermal();
    7474                        this.steadystate      = new steadystate();
    75                         this.transient        = new transient();
     75                        this.trans            = new trans();
    7676                        this.calving          = new calving();
    7777                        this.gia              = new gia();
     
    8484                        this.outputdefinition = new outputdefinition();
    8585                        this.miscellaneous    = new miscellaneous();
    86                         this.private          = new private();
     86                        this.priv             = new priv();
    8787                } //}}}
    8888                this.checkmessage = function(string){ //{{{
     
    121121                this.thermal          = 0;
    122122                this.steadystate      = 0;
    123                 this.transient        = 0;
     123                this.trans            = 0;
    124124                this.calving          = 0;
    125125                this.gia              = 0;
     
    134134                this.radaroverlay     = 0;
    135135                this.miscellaneous    = 0;
    136                 this.private          = 0;
     136                this.priv             = 0;
    137137
    138138                //set default values for fields
  • TabularUnified issm/trunk-jpl/src/m/solve/loadresultsfrombuffer.js

    r19816 r19824  
    2121               
    2222                //recover solution_type from results
    23                 md.private.solution=array['SolutionType'];
     23                md.priv.solution=array['SolutionType'];
    2424        }
    2525        else throw Error('loadresultsfrombuffer error message: qmu results not supported yet!');
  • TabularUnified issm/trunk-jpl/src/m/solve/marshall.js

    r19810 r19824  
    2222
    2323                //Some properties do not need to be marshalled
    24                 if (field == 'results' | field =='radaroverlay' | field == 'toolkits' | field =='cluster' | field == 'flaim' | field == 'private') continue;
     24                if (field == 'results' | field =='radaroverlay' | field == 'toolkits' | field =='cluster' | field == 'flaim' | field == 'priv') continue;
    2525               
    2626                //Check that current field is a class
  • TabularUnified issm/trunk-jpl/src/m/solve/solve.js

    r19816 r19824  
    4040
    4141        //recover some fields
    42         md.private.solution=solutionenum;
     42        md.priv.solution=solutionenum;
    4343        cluster=md.cluster;
    4444
     
    4949                }
    5050                if (solutionenum == FlaimSolutionEnum()){
    51                         md.private.isconsistent=true;
     51                        md.priv.isconsistent=true;
    5252                        md.mesh.checkconsistency(md,solutionenum);
    5353                        md.flaim.checkconsistency(md,solutionenum);
    54                         if (md.private.isconsistent==false){
     54                        if (md.priv.isconsistent==false){
    5555                                throw error('solve error message: model not consistent, see messages above');
    5656                        }
     
    6969        else{
    7070                if (!(restart == '')){
    71                         md.private.runtimename=restart;
     71                        md.priv.runtimename=restart;
    7272                }
    7373                else if (options.getfieldvalue('runtimename',true)){
    7474                        c=new Date().getTime();
    75                         md.private.runtimename=sprintf('%s-%g',md.miscellaneous.name,c);
     75                        md.priv.runtimename=sprintf('%s-%g',md.miscellaneous.name,c);
    7676                }
    7777                else{
    78                         md.private.runtimename=md.miscellaneous.name;
     78                        md.priv.runtimename=md.miscellaneous.name;
    7979                }
    8080        }
     
    9696                throw  Error("solve error message: flaim runs not supported yet!");
    9797                //flaim_sol(md,options);
    98                 //md.private.solution=EnumToString(solutionenum);
     98                //md.priv.solution=EnumToString(solutionenum);
    9999                //return;
    100100        }
     
    114114                throw Error('non local clusters not supported yet!');
    115115
    116                 cluster.BuildQueueScript(md.private.runtimename,md.miscellaneous.name,md.private.solution,md.settings.io_gather,md.debug.valgrind,md.debug.gprof,md.qmu.isdakota); // queue file
     116                cluster.BuildQueueScript(md.priv.runtimename,md.miscellaneous.name,md.priv.solution,md.settings.io_gather,md.debug.valgrind,md.debug.gprof,md.qmu.isdakota); // queue file
    117117
    118118                //Stop here if batch mode
     
    140140
    141141                if (restart == ''){
    142                         cluster.UploadQueueJob(md.miscellaneous.name,md.private.runtimename,filelist);
     142                        cluster.UploadQueueJob(md.miscellaneous.name,md.priv.runtimename,filelist);
    143143                }
    144144
    145145                //launch queue job:
    146                 cluster.LaunchQueueJob(md.miscellaneous.name,md.private.runtimename,filelist,restart);
     146                cluster.LaunchQueueJob(md.miscellaneous.name,md.priv.runtimename,filelist,restart);
    147147
    148148                //wait on lock
  • TabularUnified issm/trunk-jpl/test/NightlyRun/test101.html

    r19816 r19824  
    4141<script type="text/javascript" src="../../src/m/classes/outputdefinition.js"></script>
    4242<script type="text/javascript" src="../../src/m/classes/miscellaneous.js"></script>
    43 <script type="text/javascript" src="../../src/m/classes/private.js"></script>
     43<script type="text/javascript" src="../../src/m/classes/priv.js"></script>
    4444<script type="text/javascript" src="../../src/m/classes/steadystate.js"></script>
    4545<script type="text/javascript" src="../../src/m/classes/rifts.js"></script>
     
    4747<script type="text/javascript" src="../../src/m/classes/plotoptions.js"></script>
    4848<script type="text/javascript" src="../../src/m/classes/pairoptions.js"></script>
    49 <script type="text/javascript" src="../../src/m/classes/transient.js"></script>
     49<script type="text/javascript" src="../../src/m/classes/trans.js"></script>
    5050<script type="text/javascript" src="../../src/m/boundaryconditions/SetIceShelfBC.js"></script>
    5151<script type="text/javascript" src="../../src/m/parameterization/setflowequation.js"></script>
Note: See TracChangeset for help on using the changeset viewer.