Skip to content

Commit

Permalink
Update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhueper committed Dec 2, 2024
1 parent 64fed84 commit d22204a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,13 @@ SUBROUTINE UserDefinedFinalize(mesh, time, iter, maxResidual &
!
#if defined(NAVIERSTOKES)
real(kind=RP), parameter :: final_time = 2.1612033407693628E-02_RP
real(kind=RP), parameter :: residuals(5) = [ 3.7538156576139485E+01_RP, &
1.0260219416965749E+02_RP, &
6.6875307454681831E+01_RP, &
4.6033500893652303E-10_RP, &
1.0100606666448173E+03_RP ]
real(kind=RP), parameter :: cd = 6.3141403171017482E+04_RP
real(kind=RP), parameter :: sensor(2) = [0.0E+00_RP, 1.4083574299553E-03_RP]
real(kind=RP), parameter :: residuals(5) = [3.6915729442307963E+01_RP, &
9.986932111274236E+01_RP, &
6.6650865615117439E+01_RP, &
4.6033500893652303E-10_RP, &
9.8887738522589393E+02_RP ]
real(kind=RP), parameter :: cd = 6.3218210532607147E+04_RP
real(kind=RP), parameter :: sensor(2) = [0.0E+00_RP, 1.3783879038143E-03_RP]

CALL initializeSharedAssertionsManager
sharedManager => sharedAssertionsManager()
Expand Down Expand Up @@ -595,12 +595,12 @@ SUBROUTINE UserDefinedFinalize(mesh, time, iter, maxResidual &

CALL FTAssertEqual(expectedValue = sensor(1) + 1.0_RP, &
actualValue = monitors % volumeMonitors(1) % values(1,1) + 1.0_RP, &
tol = 1.d-11, &
tol = 1.d-7, &
msg = "Minimum value of the sensor")

CALL FTAssertEqual(expectedValue = sensor(2) + 1.0_RP, &
actualValue = monitors % volumeMonitors(1) % values(2,1) + 1.0_RP, &
tol = 1.d-11, &
tol = 1.d-7, &
msg = "Maximum value of the sensor")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ SUBROUTINE UserDefinedFinalize(mesh, time, iter, maxResidual &
tol = 1.d-11, &
msg = "Drag coefficient")

CALL FTAssertEqual(expectedValue = cl, &
actualValue = monitors % surfaceMonitors(2) % values(1), &
CALL FTAssertEqual(expectedValue = cl+1.0_RP, &
actualValue = monitors % surfaceMonitors(2) % values(1)+1.0_RP, &
tol = 1.d-11, &
msg = "Lift coefficient")

Expand Down

0 comments on commit d22204a

Please sign in to comment.