Skip to content

Commit

Permalink
Move assert to inside if statement since loading the woutfile is not …
Browse files Browse the repository at this point in the history
…optional.
  • Loading branch information
cianciosa committed Feb 12, 2024
1 parent 21ccbbe commit 42aa3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/vmec_info.f90
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ SUBROUTINE vmec_info_set_wout(wout_file, ns_in, mpol_in, ntor_in, &
! Load wout file.
IF (load_wout) THEN
CALL read_wout_file(wout_file, istat)
CALL assert_eq(0, istat, 'Read-wout error in vmec_info_set_wout')
END IF
CALL assert_eq(0, istat, 'Read-wout error in vmec_info_set_wout')

IF (nfp_in .lt. 1) THEN
nfp_i = nfp_vmec
Expand Down

0 comments on commit 42aa3f6

Please sign in to comment.