diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc
index a6d8f2fe04b7a4de4bb45862dc19f4fc5d2731f9..4d53def088b8425ef84bfaafd2cbad57d20081ff 100644
--- a/src/DynamicModel.cc
+++ b/src/DynamicModel.cc
@@ -2949,13 +2949,16 @@ DynamicModel::computingPass(int derivsOrder, int paramsDerivsOrder, const eval_c
   if (paramsDerivsOrder > 0 && !no_tmp_terms)
     computeParamsDerivativesTemporaryTerms();
 
-  computingPassBlock(eval_context, no_tmp_terms);
-  if (block_decomposed)
-    computeBlockDynJacobianCols();
-  if (!block_decomposed && block)
-    {
-      cerr << "ERROR: Block decomposition requested but failed." << endl;
-      exit(EXIT_FAILURE);
+  if (block)
+    { 
+      computingPassBlock(eval_context, no_tmp_terms);
+      if (block_decomposed)
+	computeBlockDynJacobianCols();
+      if (!block_decomposed && block)
+	{
+	  cerr << "ERROR: Block decomposition requested but failed." << endl;
+	  exit(EXIT_FAILURE);
+	}
     }
 }
 
diff --git a/src/DynareMain.cc b/src/DynareMain.cc
index 4acd1bd2359929e991029a2ff383aff1402641ce..72b8735e71f8f36a910d0ac6beb24b5fb04ac65b 100644
--- a/src/DynareMain.cc
+++ b/src/DynareMain.cc
@@ -523,6 +523,11 @@ main(int argc, char **argv)
   mod_file->evalAllExpressions(warn_uninit);
 
   // Do computations
+  if (language == LanguageOutputType::julia)
+    mod_file -> block = false;
+  else
+    mod_file -> block = true;
+    
   mod_file->computingPass(no_tmp_terms, output_mode, params_derivs_order);
   if (json == JsonOutputPointType::computingpass)
     mod_file->writeJsonOutput(basename, json, json_output_mode, onlyjson, jsonderivsimple);
diff --git a/src/StaticModel.cc b/src/StaticModel.cc
index 192b06dcaa4a8713f2f99cbda89e04ec37754de6..b90e8f3ae6ae93cd850ad3d90f947e6631743b3a 100644
--- a/src/StaticModel.cc
+++ b/src/StaticModel.cc
@@ -382,11 +382,14 @@ StaticModel::computingPass(int derivsOrder, int paramsDerivsOrder, const eval_co
   if (paramsDerivsOrder > 0 && !no_tmp_terms)
     computeParamsDerivativesTemporaryTerms();
 
-  computingPassBlock(eval_context, no_tmp_terms);
-  if (!block_decomposed && block)
+  if (block)
     {
-      cerr << "ERROR: Block decomposition requested but failed. If your model does not have a steady state, you may want to try the 'no_static' option of the 'model' block." << endl;
-      exit(EXIT_FAILURE);
+      computingPassBlock(eval_context, no_tmp_terms);
+      if (!block_decomposed && block)
+	{
+	  cerr << "ERROR: Block decomposition requested but failed. If your model does not have a steady state, you may want to try the 'no_static' option of the 'model' block." << endl;
+	  exit(EXIT_FAILURE);
+	}
     }
 }