File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ def __init__(self,
141141 filename = f"{ filename } .sp"
142142 logger .info (f"Initializing a SPEC object from file: { filename } " )
143143
144- #If spec has run before, clear the f90wrap array caches.
144+ # If spec has run before, clear the f90wrap array caches.
145+ # See https://github.com/hiddenSymmetries/simsopt/pull/431
146+ # This addresses the issue https://github.com/hiddenSymmetries/simsopt/issues/357
145147 if spec .allglobal ._arrays :
146148 self ._clear_f90wrap_array_caches ()
147149
@@ -722,7 +724,12 @@ def set_dofs(self, x):
722724
723725 def _clear_f90wrap_array_caches (self ):
724726 """
725- Clear the f90wrap array caches. This is necessary when a new file is read after SPEC has run before.
727+ Clear the f90wrap array caches. This is necessary when a new file is
728+ read after SPEC has run before.
729+
730+ See https://github.com/hiddenSymmetries/simsopt/pull/431
731+
732+ This function is for addressing the issue https://github.com/hiddenSymmetries/simsopt/issues/357
726733 """
727734 spec .allglobal ._arrays = {}
728735 spec .inputlist ._arrays = {}
You can’t perform that action at this time.
0 commit comments