Skip to content

Commit

Permalink
Bugfix - use of wrong default algorithms for surface and volume
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold authored Sep 8, 2024
1 parent 248b32a commit f45d7bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integral_aliases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function surfaceintegral(
Dim = Meshes.paramdim(geometry)

if Dim == 2
return integral(f, geometry, GaussKronrod())
return integral(f, geometry, HAdaptiveCubature())
else
error("Performing a surface integral on a geometry with $Dim parametric dimensions not supported.")
end
Expand Down Expand Up @@ -145,7 +145,7 @@ function volumeintegral(
Dim = Meshes.paramdim(geometry)

if Dim == 3
return integral(f, geometry, GaussKronrod())
return integral(f, geometry, HAdaptiveCubature())
else
error("Performing a volume integral on a geometry with $Dim parametric dimensions not supported.")
end
Expand Down

0 comments on commit f45d7bb

Please sign in to comment.