Changeset 8687
- Timestamp:
- Feb 8, 2013, 10:55:18 AM (12 years ago)
- Location:
- trunk/anuga_core/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/culvert_flows/test_culvert_class.py
r7858 r8687 115 115 #print 'depth', depth 116 116 ref_volume = domain.get_quantity('stage').get_integral() 117 for t in domain.evolve(yieldstep = 0.1, finaltime = 25):117 for t in domain.evolve(yieldstep = 0.1, finaltime = 10): 118 118 new_volume = domain.get_quantity('stage').get_integral() 119 119 … … 363 363 364 364 # Try this for a range of depths 365 for depth in [0.1, 0.2, 0.5, 1.0]:365 for depth in [0.1, 1.0]: #[0.1, 0.2, 0.5, 1.0]: 366 366 run_culvert_flow_problem(depth) 367 367 -
trunk/anuga_core/source/anuga/file_conversion/test_urs2sts.py
r8068 r8687 1958 1958 if not sys.platform == 'win32': 1959 1959 os.remove(sts_file+'.sts') 1960 1961 os.remove(meshname) 1960 1961 try: 1962 os.remove(meshname) 1963 except: 1964 pass 1962 1965 1963 1966 -
trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py
r8623 r8687 91 91 self.velocity = velocity 92 92 93 self.applied_Q = 0.0 94 93 95 def __call__(self): 94 96 … … 225 227 #log_to_file(self.log_filename, self.culvert_type) 226 228 229 def log_timestepping_statistics(self): 230 231 if self.logging and self.myid == self.master_proc: 232 log_to_file(self.log_filename, self.timestepping_statistics()) 227 233 228 234 def timestepping_statistics(self): 229 235 230 236 message = '%.5f, ' % self.domain.get_time() 231 message += '%.5f, ' % self. Q237 message += '%.5f, ' % self.applied_Q 232 238 233 239 return message -
trunk/anuga_core/source/anuga_parallel/parallel_structure_operator.py
r8419 r8687 459 459 def set_logging(self, flag=True): 460 460 # Overwrite the sequential procedure with a dummy procedure. 461 # Need to call set_parallel_logging which needs t obe done later461 # Need to call set_parallel_logging which needs to be done later 462 462 # after the calculation of master processors 463 463 464 464 pass 465 465 466 467 def log_timestepping_statistics(self): 468 469 from anuga.utilities.system_tools import log_to_file 470 if self.logging and self.myid == self.master_proc: 471 log_to_file(self.log_filename, self.timestepping_statistics()) 472 473 466 474 467 475 def timestepping_statistics(self): -
trunk/anuga_core/source/anuga_parallel/pypar_extras/setup.py
r8535 r8687 55 55 print 'running ' + cmd 56 56 try: 57 #FIXME SR: Th isonly works for python 2.7!57 #FIXME SR: The following only works for python 2.7! 58 58 #output = subprocess.check_output(cmd, shell=True) 59 59 #FIXME SR: This works for python 2.6 … … 77 77 return output 78 78 79 # FIXME: If appears that MPICH actually needs th is these hacks.79 # FIXME: If appears that MPICH actually needs these hacks. 80 80 81 81 # MPICH -
trunk/anuga_core/source/anuga_parallel/test_parallel_sw_flow.py
r8115 r8687 198 198 if myid == 0 and verbose: print 'SEQUENTIAL START' 199 199 200 G , interpolation_points = evolution_test(parallel=False )200 G , interpolation_points = evolution_test(parallel=False,verbose=verbose) 201 201 G = num.array(G,num.float) 202 202 … … 209 209 if myid ==0 and verbose: print 'PARALLEL START' 210 210 211 evolution_test(parallel=True, G=G, seq_interpolation_points = interpolation_points )211 evolution_test(parallel=True, G=G, seq_interpolation_points = interpolation_points, verbose= verbose) 212 212 213 213 finalize()
Note: See TracChangeset
for help on using the changeset viewer.