File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ def extrude(self, md): #{{{
6767 # }}}
6868
6969 def initialize (self , md ): #{{{
70- if np .isnan (self .global_average_thermosteric_sea_level ):
70+ if np .all ( np . isnan (self .global_average_thermosteric_sea_level ) ):
7171 self .global_average_thermosteric_sea_level = np .array ([0 , 0 ]).reshape (- 1 , 1 )
7272 print (' no dsl.global_average_thermosteric_sea_level specified: transient values set to zero' )
7373
74- if np .isnan (self .sea_surface_height_above_geoid ):
74+ if np .all ( np . isnan (self .sea_surface_height_above_geoid ) ):
7575 self .sea_surface_height_above_geoid = np .append (np .zeros ((md .mesh .numberofvertices , 1 )), 0 ).reshape (- 1 , 1 )
7676 print (' no dsl.sea_surface_height_above_geoid specified: transient values set to zero' )
7777
78- if np .isnan (self .sea_water_pressure_at_sea_floor ):
78+ if np .all ( np . isnan (self .sea_water_pressure_at_sea_floor ) ):
7979 self .sea_water_pressure_at_sea_floor = np .append (np .zeros ((md .mesh .numberofvertices , 1 )), 0 ).reshape (- 1 , 1 )
8080 print (' no dsl.sea_water_pressure_at_sea_floor specified: transient values set to zero' )
8181 # }}}
You can’t perform that action at this time.
0 commit comments