Changeset 27775


Ignore:
Timestamp:
05/23/23 05:41:44 (22 months ago)
Author:
Mathieu Morlighem
Message:

CHG: better description of output_frequency

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

Legend:

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

    r26300 r27775  
    66function issmsettings (){
    77    //methods
    8     this.setdefaultparameters = function(){// {{{
    9         //are we short in memory ? (0 faster but requires more memory)
    10         this.lowmem=0;
     8        this.setdefaultparameters = function(){// {{{
     9                //are we short in memory ? (0 faster but requires more memory)
     10                this.lowmem=0;
    1111
    12         //i/o:
    13         this.io_gather=1;
     12                //i/o:
     13                this.io_gather=1;
    1414
    15         //results frequency by default every step
    16         this.output_frequency=1;
     15                //results frequency by default every step
     16                this.output_frequency=1;
    1717
    18         //coupling frequency of the stress balance solver by default every step
    19         this.sb_coupling_frequency=1;
     18                //coupling frequency of the stress balance solver by default every step
     19                this.sb_coupling_frequency=1;
    2020
    21         //checkpoints frequency, by default never:
    22         this.checkpoint_frequency=0;
     21                //checkpoints frequency, by default never:
     22                this.checkpoint_frequency=0;
    2323
    24         //this option can be activated to load automatically the results
    25         //onto the model after a parallel run by waiting for the lock file
    26         //N minutes that is generated once the solution has converged
    27         //0 to deactivate
    28         this.waitonlock=Infinity;
     24                //this option can be activated to load automatically the results
     25                //onto the model after a parallel run by waiting for the lock file
     26                //N minutes that is generated once the solution has converged
     27                //0 to deactivate
     28                this.waitonlock=Infinity;
    2929
    30         //upload options:
    31         this.upload_port         = 0;
     30                //upload options:
     31                this.upload_port         = 0;
    3232
    33         //throw an error if solver residue exceeds this value
    34         this.solver_residue_threshold=1e-6;
     33                //throw an error if solver residue exceeds this value
     34                this.solver_residue_threshold=1e-6;
    3535
    36     }// }}}
    37     this.disp= function(){// {{{
    38         console.log(sprintf('   issmsettings class echo:'));
     36        }// }}}
     37        this.disp= function(){// {{{
     38                console.log(sprintf('   issmsettings class echo:'));
    3939
    40         fielddisplay(this,'results_on_nodes','results are output for all the nodes of each element');
    41         fielddisplay(this,'io_gather','I/O gathering strategy for result outputs (default 1)');
    42         fielddisplay(this,'lowmem','is the memory limited ? (0 or 1)');
    43         fielddisplay(this,'output_frequency','frequency at which results are saved in all solutions with multiple time_steps');
    44         fielddisplay(this,'checkpoint_frequency','frequency at which the runs are being recorded, allowing for a restart');
    45         fielddisplay(this,'waitonlock','maximum number of minutes to wait for batch results (NaN to deactivate)');
    46         fielddisplay(this,'upload_server','server hostname where model should be uploaded');
    47         fielddisplay(this,'upload_path','path on server where model should be uploaded');
    48         fielddisplay(this,'upload_login','server login');
    49         fielddisplay(this,'upload_port','port login (default is 0)');
    50         fielddisplay(this,'upload_filename','unique id generated when uploading the file to server');
    51         fielddisplay(this,'solver_residue_threshold','throw an error if solver residue exceeds this value');
     40                fielddisplay(this,'results_on_nodes','results are output for all the nodes of each element');
     41                fielddisplay(this,'io_gather','I/O gathering strategy for result outputs (default 1)');
     42                fielddisplay(this,'lowmem','is the memory limited ? (0 or 1)');
     43                fielddisplay(this,'output_frequency','number of time steps between two saves (e.g., 5 means that results are only saved every 5 time steps)');
     44                fielddisplay(this,'checkpoint_frequency','frequency at which the runs are being recorded, allowing for a restart');
     45                fielddisplay(this,'waitonlock','maximum number of minutes to wait for batch results (NaN to deactivate)');
     46                fielddisplay(this,'upload_server','server hostname where model should be uploaded');
     47                fielddisplay(this,'upload_path','path on server where model should be uploaded');
     48                fielddisplay(this,'upload_login','server login');
     49                fielddisplay(this,'upload_port','port login (default is 0)');
     50                fielddisplay(this,'upload_filename','unique id generated when uploading the file to server');
     51                fielddisplay(this,'solver_residue_threshold','throw an error if solver residue exceeds this value');
    5252
    5353
    54     }// }}}
    55     this.classname= function(){// {{{
    56         return "issmsettings";
     54        }// }}}
     55        this.classname= function(){// {{{
     56                return "issmsettings";
    5757
    58     }// }}}
     58        }// }}}
    5959        this.checkconsistency = function(md,solution,analyses) { // {{{
    6060
     
    8181        }//}}}
    8282        //properties
    83     // {{{
    84     this.results_on_nodes        = '';
    85     this.io_gather               = 0;
    86     this.lowmem                  = 0;
    87     this.output_frequency        = 0;
    88     this.sb_coupling_frequency   = 0;
    89     this.checkpoint_frequency    = 0;
    90     this.waitonlock              = 0;
    91     this.upload_server           = '';
    92     this.upload_path             = '';
    93     this.upload_login            = '';
    94     this.upload_port             = 0;
    95     this.upload_filename         = '';
    96     this.solver_residue_threshold = 0;
    97     this.setdefaultparameters();
    98     //}}}
     83        // {{{
     84        this.results_on_nodes        = '';
     85        this.io_gather               = 0;
     86        this.lowmem                  = 0;
     87        this.output_frequency        = 0;
     88        this.sb_coupling_frequency   = 0;
     89        this.checkpoint_frequency    = 0;
     90        this.waitonlock              = 0;
     91        this.upload_server           = '';
     92        this.upload_path             = '';
     93        this.upload_login            = '';
     94        this.upload_port             = 0;
     95        this.upload_filename         = '';
     96        this.solver_residue_threshold = 0;
     97        this.setdefaultparameters();
     98        //}}}
    9999}
  • issm/trunk-jpl/src/m/classes/issmsettings.m

    r25668 r27775  
    9292                        fielddisplay(self,'io_gather','I/O gathering strategy for result outputs (default 1)');
    9393                        fielddisplay(self,'lowmem','is the memory limited ? (0 or 1)');
    94                         fielddisplay(self,'output_frequency','frequency at which results are saved in all solutions with multiple time_steps');
     94                        fielddisplay(self,'output_frequency','number of time steps between two saves (e.g., 5 means that results are only saved every 5 time steps)');
    9595                        fielddisplay(self,'sb_coupling_frequency','frequency at which StressBalance solver is coupled (default 1)');
    9696                        fielddisplay(self,'checkpoint_frequency','frequency at which the runs are being recorded, allowing for a restart');
  • issm/trunk-jpl/src/m/classes/issmsettings.py

    r27458 r27775  
    3030        s += '{}\n'.format(fielddisplay(self, "io_gather", "I / O gathering strategy for result outputs (default 1)"))
    3131        s += '{}\n'.format(fielddisplay(self, "lowmem", "is the memory limited ? (0 or 1)"))
    32         s += '{}\n'.format(fielddisplay(self, "output_frequency", "frequency at which results are saved in all solutions with multiple time_steps"))
     32        s += '{}\n'.format(fielddisplay(self, "output_frequency", "number of time steps between two saves (e.g., 5 means that results are only saved every 5 time steps)"))
    3333        s += '{}\n'.format(fielddisplay(self, "sb_coupling_frequency", "frequency at which StressBalance solver is coupled (default 1)"))
    3434        s += '{}\n'.format(fielddisplay(self, "checkpoint_frequency", "frequency at which the runs are being recorded, allowing for a restart"))
Note: See TracChangeset for help on using the changeset viewer.