Skip to content

Commit

Permalink
Cookies: Drop benchmark output test for dropped parabolic benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger committed Aug 1, 2024
1 parent 388a843 commit 6ab108c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions models/fenics-cookies-problem/test_output_parabolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# first run the container as
#
# docker run -it -p 4242:4242 <image name>
# docker run -it -p 4242:4242 <image name>
#
# then run this script as python3 test_output.py http://localhost:4242

Expand Down Expand Up @@ -39,11 +39,3 @@
output = model(param,{"BasisDegree": 3, "Fidelity": 2})
print("model output (quantity of interest) = "+str(output[0][0]))
assert pytest.approx(output[0][0], abs=1e-6) == 0.06936772917504516, "Output not as expected"

#another test, this time for the benchmark version (i.e. p=4, fid=2 again, same as model default)
model_B = umbridge.HTTPModel(args.url, "benchmarkparabolic")

param = [[-0.2,-0.2,-0.3,-0.4,-0.5,-0.6,-0.7,-0.8]]
output = model_B(param)
print("model output (quantity of interest) in benchmark configuration = "+str(output[0][0]))
assert pytest.approx(output[0][0], abs=1e-6) == 0.05725981992101194, "Output not as expected"

0 comments on commit 6ab108c

Please sign in to comment.