diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc
index 02a98b9f73899e601a1453e1962cce5c54e8ad49..74f820104f7c801f4b361f84c39b14b75cb292e2 100644
--- a/src/cosserat-continuum.cc
+++ b/src/cosserat-continuum.cc
@@ -158,7 +158,8 @@ int main (int argc, char *argv[]) try
 
     FieldVector<double,dimworld> lower(0), upper(1);
 
-    if (parameterSet.get<bool>("structuredGrid")) {
+    std::string structuredGridType = parameterSet["structuredGrid"];
+    if (structuredGridType == "cube") {
 
         lower = parameterSet.get<FieldVector<double,dimworld> >("lower");
         upper = parameterSet.get<FieldVector<double,dimworld> >("upper");