@@ -545,7 +545,7 @@ def _determine_resolutions_from_dummy_amrwind_grid(self):
545545 from openfast_toolbox .fastfarm .AMRWindSimulation import AMRWindSimulation
546546
547547 # Create values and keep variable names consistent across interfaces
548- dummy_dt = 0.1
548+ dummy_dt = 0.01
549549 dummy_ds = 1
550550 prob_lo = (- 10005 , - 10005 , 0 ) # The 5 m offset is such that we
551551 prob_hi = ( 10005 , 10005 , 1000 ) # have a cell center at (0,0)
@@ -576,9 +576,9 @@ def _determine_resolutions_from_dummy_amrwind_grid(self):
576576 print (f' If the values above are okay, you can safely ignore this warning.\n ' )
577577
578578 self .dt_high = amr .dt_high_les
579- self .ds_high = amr .dt_high_les
579+ self .ds_high = amr .ds_high_les
580580 self .dt_low = amr .dt_low_les
581- self .ds_low = amr .dt_low_les
581+ self .ds_low = amr .ds_low_les
582582
583583
584584
@@ -1289,8 +1289,8 @@ def checkIfExists(f):
12891289 self .turbfilename = value
12901290
12911291 elif key == 'libdisconfilepath' :
1292- if not value .endswith ('.so' ):
1293- raise ValueError (f'The libdiscon file should end in "*.so"' )
1292+ if not value .endswith ('.so' ) and not value . endswith ( '.dylib' ) :
1293+ raise ValueError (f'The libdiscon file should end in "*.so" or "*.dylib" ' )
12941294 if os .path .isabs (value ):
12951295 self .libdisconfilepath = value
12961296 else :
@@ -2457,6 +2457,8 @@ def _getBoxesParamsForFF(self, lowbts, highbts, dt_low_desired, D, HubHt, xWT, y
24572457 # ----- Low
24582458 dT_Low = getMultipleOf (dt_low_desired , multipleof = dT_High )
24592459 dX_Low = getMultipleOf (meanU_Low * dT_Low , multipleof = dX_High )
2460+ if dX_Low == 0. :
2461+ dX_Low = dX_High
24602462 dY_Low = lowbts .y [1 ] - lowbts .y [0 ]
24612463 dZ_Low = lowbts .z [1 ] - lowbts .z [0 ]
24622464
0 commit comments