diff --git a/ProcessLib/UniformDirichletBoundaryCondition.h b/ProcessLib/UniformDirichletBoundaryCondition.h
index 6ec846aa3faff9bde90ea749dc37aaae2431d96b..3aa9aa57e774818b9c188425b32ce926a88cea19 100644
--- a/ProcessLib/UniformDirichletBoundaryCondition.h
+++ b/ProcessLib/UniformDirichletBoundaryCondition.h
@@ -50,6 +50,14 @@ public:
         DBUG("Using value %g", _value);
     }
 
+    UniformDirichletBoundaryCondition(GeoLib::GeoObject const* const geometry,
+                                      double value)
+        : _value(value), _geometry(geometry)
+    {
+        DBUG("Constructed UniformDirichletBoundaryCondition using value %g",
+            _value);
+    }
+
     /// Initialize Dirichlet type boundary conditions.
     /// Fills in global_ids of the particular geometry of the boundary condition
     /// and the corresponding values.