From 6c112090569d27c8ba870606191766852a136eb5 Mon Sep 17 00:00:00 2001 From: "David J. Gardner" Date: Tue, 28 May 2024 22:38:27 -0700 Subject: [PATCH 1/2] check if fortran interfaces are enabled --- ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt | 2 +- ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt | 2 +- ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt b/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt index b26c45e5..064f4e96 100644 --- a/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt +++ b/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt @@ -1,4 +1,4 @@ -if ( (AMReX_SPACEDIM EQUAL 1) OR NOT CMAKE_Fortran_COMPILER_LOADED ) +if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FINTERFACES ) return() endif () diff --git a/ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt b/ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt index 4a791a81..52d3ee50 100644 --- a/ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt +++ b/ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt @@ -1,4 +1,4 @@ -if ( (AMReX_SPACEDIM EQUAL 1) OR NOT CMAKE_Fortran_COMPILER_LOADED) +if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FINTERFACES) return() endif () diff --git a/ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt b/ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt index 19119b1a..dd2c2923 100644 --- a/ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt +++ b/ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt @@ -1,4 +1,4 @@ -if ( NOT CMAKE_Fortran_COMPILER_LOADED OR ( AMReX_SPACEDIM EQUAL 1) ) +if ( NOT AMReX_FINTERFACES OR ( AMReX_SPACEDIM EQUAL 1) ) return() endif () From 20871b39ad3cd906da96d90bd236f5acf0cbcb5b Mon Sep 17 00:00:00 2001 From: David Gardner Date: Wed, 29 May 2024 14:43:25 -0700 Subject: [PATCH 2/2] Update ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt Co-authored-by: Weiqun Zhang --- ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt b/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt index 064f4e96..b5fc3aaa 100644 --- a/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt +++ b/ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt @@ -1,4 +1,4 @@ -if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FINTERFACES ) +if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FORTRAN ) return() endif ()