Skip to content

Commit

Permalink
Fixed atan initial data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Cipriani authored and Lorenzo Cipriani committed Sep 19, 2023
1 parent 149b3a2 commit d685d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initial_data.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subroutine initial_data(NX, x, dx, m, r0, a0, idx, u)
real(RK), dimension(NX), intent(in) :: x
real(RK), dimension(2*NX), intent(out):: u

integer :: i, j
integer :: i
real(RK) :: th, Mass, heaviside, p, tmp
real(RK), dimension(NX) :: rr, Marray

Expand Down Expand Up @@ -57,7 +57,7 @@ subroutine initial_data(NX, x, dx, m, r0, a0, idx, u)

! Full dynamics, starting from atan density profile
else if ( idx .eq. 3 ) then

! Unnormalized density function
do i = 1, NX
rr(i) = PI/2_RK - atan(x(i) - r0)
Expand Down

0 comments on commit d685d1b

Please sign in to comment.