Skip to content

Commit

Permalink
Add patch to support older json-fortran
Browse files Browse the repository at this point in the history
  • Loading branch information
njansson committed May 22, 2024
1 parent 243c35d commit f91fcd1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions patches/json-fortran71.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/src/simulation_components/probes.F90 b/src/simulation_components/probes.F90
index 3ad6a6c6cf..be6c1a86c9 100644
--- a/src/simulation_components/probes.F90
+++ b/src/simulation_components/probes.F90
@@ -193,7 +193,7 @@ contains
call this%read_point_zone(json_point, case%fluid%dm_Xh)

case ('none')
- call json_point%print()
+! call json_point%print()
call neko_error('No point type specified.')
case default
call neko_error('Unknown region type ' // point_type)
diff --git a/src/source_terms/brinkman_source_term.f90 b/src/source_terms/brinkman_source_term.f90
index 6f24167f44..df8249dccc 100644
--- a/src/source_terms/brinkman_source_term.f90
+++ b/src/source_terms/brinkman_source_term.f90
@@ -155,7 +155,7 @@ contains
call this%init_point_zone(object_settings)

case ('none')
- call object_settings%print()
+! call object_settings%print()
call neko_error('Brinkman source term objects require a region type')
case default
call neko_error('Brinkman source term unknown region type')

0 comments on commit f91fcd1

Please sign in to comment.