mirror of
				https://github.com/smyalygames/FiniteVolumeGPU.git
				synced 2025-10-31 20:17:41 +01:00 
			
		
		
		
	fix(simulator): add default value for no parameters
This commit is contained in:
		
							parent
							
								
									a77c3786e5
								
							
						
					
					
						commit
						2241da1532
					
				| @ -42,10 +42,17 @@ class BoundaryCondition(object): | ||||
|         Periodic = 2, | ||||
|         Reflective = 3 | ||||
| 
 | ||||
|     def __init__(self, types: dict[str: Type.Reflective]): | ||||
|     def __init__(self, types: dict[str: Type.Reflective]=None): | ||||
|         """ | ||||
|         Constructor | ||||
|         """ | ||||
|         if types is None: | ||||
|             types = { | ||||
|                     'north': self.Type.Reflective, | ||||
|                     'south': self.Type.Reflective, | ||||
|                     'east': self.Type.Reflective, | ||||
|                     'west': self.Type.Reflective | ||||
|                  } | ||||
| 
 | ||||
|         self.north = types['north'] | ||||
|         self.south = types['south'] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anthony Berg
						Anthony Berg