Commit 450d100 1 parent d145179 commit 450d100 Copy full SHA for 450d100
File tree 1 file changed +3
-4
lines changed
synthesizAR/interfaces/hydrad
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,11 @@ def _map_strand_to_config_dict(self, loop):
92
92
config = copy .deepcopy (self .base_config )
93
93
# NOTE: Avoids a bug in HYDRAD where seg faults can arise due to inconsistencies between max cell
94
94
# widths and minimum number of cells
95
- loop_length = np .round (loop .length .to ('Mm' ))
96
- config ['general' ]['loop_length' ] = loop_length
97
- config ['initial_conditions' ]['heating_location' ] = loop_length / 2
95
+ config ['general' ]['loop_length' ] = loop .length
96
+ config ['initial_conditions' ]['heating_location' ] = loop .length / 2
98
97
if self .maximum_chromosphere_ratio :
99
98
config ['general' ]['footpoint_height' ] = min (
100
- config ['general' ]['footpoint_height' ], self .maximum_chromosphere_ratio * loop_length / 2 )
99
+ config ['general' ]['footpoint_height' ], self .maximum_chromosphere_ratio * loop . length / 2 )
101
100
if self .use_gravity :
102
101
config ['general' ]['poly_fit_gravity' ] = self .configure_gravity_fit (loop )
103
102
if self .use_magnetic_field :
You can’t perform that action at this time.
0 commit comments