Changeset 9140
- Timestamp:
- Jun 8, 2014, 10:36:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/case_studies/patong/run_model.py
r9139 r9140 56 56 # Tell log module to store log file in output dir 57 57 log.log_filename = os.path.join(project.output_run, 'anuga_P_%g.log'%myid) 58 if myid == 0: 59 log.console_logging_level = log.CRITICAL 60 else: 61 log.console_logging_level = log.CRITICAL+1 58 62 59 63 if(myid==0): … … 231 235 t0 = time.time() 232 236 233 ## FIXME: GD June 6 2013 -- I believe ANUGA can no longer do multiple evolves 234 ## as the 'time' variable gets confused. Think this is because 'starttime' 235 ## exists in both the sts input files, and in the model, and the two are 236 ## conflated in the code 237 ## 238 ## Skip over the first 60 seconds 237 238 ## Jump up to time 400 sec 239 239 for t in domain.evolve(yieldstep=400, finaltime=400): 240 if myid == 0: domain.write_time() 241 242 # log.critical(domain.timestepping_statistics()) 240 log.critical(domain.timestepping_statistics()) 243 241 # log.critical(domain.boundary_statistics(tags='ocean')) 244 242 245 243 246 #barrier()247 ## Check various important parameters248 244 import time 249 #time.sleep(myid) 250 #print 'Processor ', myid , ' : ', project.yieldstep, domain.flow_algorithm 251 #barrier() 252 253 #print 'project.yieldstep', project.yieldstep 245 254 246 # Start detailed model 255 247 for t in domain.evolve(yieldstep=project.yieldstep, 256 248 finaltime=project.finaltime): 257 249 258 #log.critical(domain.timestepping_statistics())250 log.critical(domain.timestepping_statistics()) 259 251 #log.critical(domain.boundary_statistics(tags='ocean')) 260 261 if myid == 0: domain.write_time()262 252 263 253
Note: See TracChangeset
for help on using the changeset viewer.