Skip to content

Commit

Permalink
fixed the NaN arrays in setup_grtde.f90
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha Sharma committed Dec 16, 2024
1 parent e0c95b6 commit ed2f693
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/setup/setup_grtde.f90
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,9 @@ subroutine setpart(id,npart,npartoftype,xyzh,massoftype,vxyzu,polyk,gamma,hfact,
time = 0.
polyk = 1.e-10 ! <== uconst
gamma = 5./3.
! ieos = 2
angle = 0.
xyzmh_ptmass_in(:,2) = 0.
vxyz_ptmass_in(3,2) = 0.
xyzmh_ptmass_in(:,:) = 0.
vxyz_ptmass_in(:,:) = 0.
if (.not.gravity) call fatal('setup','recompile with GRAVITY=yes')
!
!-- space available for injected gas particles
Expand Down Expand Up @@ -319,7 +318,7 @@ subroutine setpart(id,npart,npartoftype,xyzh,massoftype,vxyzu,polyk,gamma,hfact,
else
do i = 1, nstar
xyzmh_ptmass_in(1:3,i) = xyzmh_ptmass_in(1:3,i) + xyzstar(:)
vxyz_ptmass_in(1:3,i) = vxyz_ptmass_in(1:3,i) + vxyzstar(:)
vxyz_ptmass_in(1:3,i) = vxyz_ptmass_in(1:3,i) + vxyzstar(:)
enddo
endif

Expand Down

0 comments on commit ed2f693

Please sign in to comment.