Skip to content

Commit

Permalink
fix the num_perturb_eqs in DarkEnergy
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangfeiwang committed Aug 15, 2024
1 parent 22f0444 commit cd0c51c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions fortran/DarkEnergyFluid.f90
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ subroutine TDarkEnergyFluid_Init(this, State)
this%num_perturb_equations = 2
end if
else
if (MGDE_const) then
this%num_perturb_equations = 0
else
if (MGDE_const .and. MGDE_pert) then
this%num_perturb_equations = 2
else
this%num_perturb_equations = 0
end if
end if
end subroutine TDarkEnergyFluid_Init
Expand Down
6 changes: 3 additions & 3 deletions fortran/DarkEnergyPPF.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ subroutine TDarkEnergyPPF_Init(this, State)
this%num_perturb_equations = 1
end if
else
if (MGDE_const) then
this%num_perturb_equations = 0
else
if (MGDE_const .and. MGDE_pert) then
this%num_perturb_equations = 1
else
this%num_perturb_equations = 0
end if
end if
if (this%cs2_lam /= 1._dl) &
Expand Down

0 comments on commit cd0c51c

Please sign in to comment.