From 4b6b1a7b98902ab9313bd95d4de7c848cb1d711d Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Tue, 27 Aug 2013 15:50:57 -0400 Subject: [PATCH] re-added back in fatal error if petsc is not compiled when using cmfd --- src/input_xml.F90 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input_xml.F90 b/src/input_xml.F90 index a0731ee70b..6243f7a215 100644 --- a/src/input_xml.F90 +++ b/src/input_xml.F90 @@ -561,6 +561,10 @@ contains call lower_case(run_cmfd_) if (run_cmfd_ == 'true' .or. run_cmfd_ == '1') then cmfd_run = .true. +#ifndef PETSC + message = 'CMFD is not available, recompile OpenMC with PETSc' + call fatal_error() +#endif end if end subroutine read_settings_xml