diff --git a/ProcessLib/Output/ProcessOutput.cpp b/ProcessLib/Output/ProcessOutput.cpp
index 3abd7caf1c0da6ac3482e4d45170e6ef1d4357a0..0d83b3129437e02278a48474871089b4f0f679bd 100644
--- a/ProcessLib/Output/ProcessOutput.cpp
+++ b/ProcessLib/Output/ProcessOutput.cpp
@@ -63,19 +63,6 @@ static void addSecondaryVariableNodes(
     std::unique_ptr<GlobalVector> result_cache;
     auto const& nodal_values =
         var.fcts.eval_field(t, x, dof_table, result_cache);
-#ifdef USE_PETSC
-    std::size_t const global_vector_size =
-        nodal_values.getLocalSize() + nodal_values.getGhostSize();
-#else
-    std::size_t const global_vector_size = nodal_values.size();
-#endif
-    if (nodal_values_mesh.size() != global_vector_size)
-    {
-        OGS_FATAL(
-            "Secondary variable `{:s}' did not evaluate to the right number of "
-            "components. Expected: {:d}, actual: {:d}.",
-            var.name, nodal_values_mesh.size(), global_vector_size);
-    }
 
     // Copy result
     nodal_values.copyValues(nodal_values_mesh);
diff --git a/Tests/MathLib/TestGlobalVectorInterface.cpp b/Tests/MathLib/TestGlobalVectorInterface.cpp
index fd7ac7da12af8ab23f83c1e8c67b2553f47ff250..ffe39a4567aad16eaa4dc356a8b94d5546375878 100644
--- a/Tests/MathLib/TestGlobalVectorInterface.cpp
+++ b/Tests/MathLib/TestGlobalVectorInterface.cpp
@@ -176,8 +176,7 @@ void checkGlobalVectorInterfacePETSc()
     ASSERT_ARRAY_NEAR(z, x0, 6, 1e-10);
 
     // check local array
-    std::vector<double> loc_v(x_fixed_p.getLocalSize() +
-                              x_fixed_p.getGhostSize());
+    std::vector<double> loc_v;
     x_fixed_p.copyValues(loc_v);
     z[0] = 1.0;
     z[1] = 2.0;