Changeset 27775
- Timestamp:
- 05/23/23 05:41:44 (22 months ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/issmsettings.js
r26300 r27775 6 6 function issmsettings (){ 7 7 //methods 8 9 10 8 this.setdefaultparameters = function(){// {{{ 9 //are we short in memory ? (0 faster but requires more memory) 10 this.lowmem=0; 11 11 12 13 12 //i/o: 13 this.io_gather=1; 14 14 15 16 15 //results frequency by default every step 16 this.output_frequency=1; 17 17 18 19 18 //coupling frequency of the stress balance solver by default every step 19 this.sb_coupling_frequency=1; 20 20 21 22 21 //checkpoints frequency, by default never: 22 this.checkpoint_frequency=0; 23 23 24 25 26 27 28 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; 29 29 30 31 30 //upload options: 31 this.upload_port = 0; 32 32 33 34 33 //throw an error if solver residue exceeds this value 34 this.solver_residue_threshold=1e-6; 35 35 36 37 38 36 }// }}} 37 this.disp= function(){// {{{ 38 console.log(sprintf(' issmsettings class echo:')); 39 39 40 41 42 43 fielddisplay(this,'output_frequency','frequency at which results are saved in all solutions with multiple time_steps');44 45 46 47 48 49 50 51 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'); 52 52 53 53 54 55 56 54 }// }}} 55 this.classname= function(){// {{{ 56 return "issmsettings"; 57 57 58 58 }// }}} 59 59 this.checkconsistency = function(md,solution,analyses) { // {{{ 60 60 … … 81 81 }//}}} 82 82 //properties 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 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 //}}} 99 99 } -
issm/trunk-jpl/src/m/classes/issmsettings.m
r25668 r27775 92 92 fielddisplay(self,'io_gather','I/O gathering strategy for result outputs (default 1)'); 93 93 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)'); 95 95 fielddisplay(self,'sb_coupling_frequency','frequency at which StressBalance solver is coupled (default 1)'); 96 96 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 30 30 s += '{}\n'.format(fielddisplay(self, "io_gather", "I / O gathering strategy for result outputs (default 1)")) 31 31 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)")) 33 33 s += '{}\n'.format(fielddisplay(self, "sb_coupling_frequency", "frequency at which StressBalance solver is coupled (default 1)")) 34 34 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.