Skip to content

Commit

Permalink
(setup_shock) BUG FIX: setup_shock writes .setup file after interacti…
Browse files Browse the repository at this point in the history
…ve setup
  • Loading branch information
danieljprice committed Jul 21, 2020
1 parent 54935a4 commit 612f061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup/setup_shock.F90
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ subroutine setpart(id,npart,npartoftype,xyzh,massoftype,vxyzu,polyk,gamma,hfact,
else
if (id==master) call choose_shock(gamma,polyk,dtg,iexist) ! Choose shock
endif
if (ierr /= 0 .and. id==master) then
if ((.not. iexist .or. ierr /= 0) .and. id==master) then
call write_setupfile(shkfile,iprint,nstates,gamma,polyk,dtg) ! write shock file with defaults
print "(/,a,/)",' please check/edit .setup and rerun phantomsetup'
stop
Expand Down

0 comments on commit 612f061

Please sign in to comment.