Skip to content

Commit

Permalink
Fix wrong conditionals in leveling solver
Browse files Browse the repository at this point in the history
  • Loading branch information
parikshitbajpai committed Oct 9, 2023
1 parent 7cda2ea commit f12aa11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/setup/LevelingSolver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ subroutine LevelingSolver
end if

if (allocated(dLevel)) then
if( SIZE(iAssemblage) /= nElements) then
if( SIZE(dLevel) /= nElements) then
deallocate(dLevel, STAT=n)
if (n /= 0) then
INFOThermo = 20
Expand All @@ -165,7 +165,7 @@ subroutine LevelingSolver
end if

if (allocated(iterHistoryLevel)) then
if( SIZE(iAssemblage) /= nElements) then
if( SIZE(iterHistoryLevel) /= nElements) then
deallocate(iterHistoryLevel, STAT=n)
if (n /= 0) then
INFOThermo = 20
Expand Down

0 comments on commit f12aa11

Please sign in to comment.