From 5db924c4105eabb2bfb4b0d22219d5872c1fc2c1 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Tue, 20 Aug 2024 17:43:05 +0200 Subject: [PATCH] Improve error message about structured grids and dim!=dimworld --- src/cosserat-continuum.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc index 7e8da0a2..a94d0a66 100644 --- a/src/cosserat-continuum.cc +++ b/src/cosserat-continuum.cc @@ -187,7 +187,7 @@ int main (int argc, char *argv[]) try std::string structuredGridType = parameterSet["structuredGrid"]; if (structuredGridType == "cube") { if (dim!=dimworld) - DUNE_THROW(GridError, "Please use FoamGrid and read in a grid for problems with dim != dimworld."); + DUNE_THROW(GridError, "Structured grids are only supported if dim != dimworld."); lower = parameterSet.get<FieldVector<double,dimworld> >("lower"); upper = parameterSet.get<FieldVector<double,dimworld> >("upper"); -- GitLab