Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
abaillod committed Dec 13, 2023
1 parent b9f2d07 commit a92dc52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simsopt/mhd/vmec.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ def boundary(self, boundary):
logging.debug('Replacing surface in boundary setter')
self.remove_parent(self._boundary)
self._boundary = boundary
self.indata.nfp = boundary.nfp
if self.runnable:
self.indata.nfp = boundary.nfp
self.append_parent(boundary)
self.need_to_run_code = True

Expand Down

0 comments on commit a92dc52

Please sign in to comment.