- Timestamp:
- Apr 24, 2008, 7:30:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r5162 r5242 166 166 # =0 for ghost 167 167 N = len(self) #number_of_elements 168 self.number_of_elements = N 168 169 self.tri_full_flag = ones(N, Int) 169 170 for i in self.ghost_recv_dict.keys(): … … 173 174 # Test the assumption that all full triangles are store before 174 175 # the ghost triangles. 175 assert allclose(self.tri_full_flag[:self.number_of_full_nodes],1) 176 if not allclose(self.tri_full_flag[:self.number_of_full_nodes],1): 177 print 'WARNING: Not all full triangles are store before ghost triangles' 176 178 177 179 … … 1415 1417 # Protect against degenerate timesteps arising from isolated 1416 1418 # triangles 1419 # FIXME (Steve): This should be in shallow_water as it assumes x and y 1420 # momentum 1417 1421 if self.protect_against_isolated_degenerate_timesteps is True and\ 1418 1422 self.max_speed > 10.0: # FIXME (Ole): Make this configurable
Note: See TracChangeset
for help on using the changeset viewer.