Skip to content

Commit 8c1857e

Browse files
committed
Fix malformed patch file
The patch file had incorrect unified diff formatting. Fixed by: - Properly showing the removal of the unconditional 'use m_thermochem' line - Properly showing the addition of the conditional #:if chemistry block - Ensuring correct line prefixes (-, +, and space for context)
1 parent 0549933 commit 8c1857e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

packaging/spack/fix-chemistry-disabled.patch

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@ diff --git a/src/common/m_derived_types.fpp b/src/common/m_derived_types.fpp
22
index 1234567..7654321 100644
33
--- a/src/common/m_derived_types.fpp
44
+++ b/src/common/m_derived_types.fpp
5-
@@ -11,10 +11,16 @@ module m_derived_types
5+
@@ -11,7 +11,12 @@ module m_derived_types
66
use m_constants !< Constants
77

88
use m_precision_select
9+
- use m_thermochem, only: num_species
910
+#:if chemistry
10-
use m_thermochem, only: num_species
11+
+ use m_thermochem, only: num_species
1112
+#:else
1213
+ ! Chemistry disabled: use dummy value for num_species
1314
+ integer, parameter :: num_species = 1
1415
+#:endif
1516

1617
implicit none
1718

18-
!> Derived type adding the field position (fp) as an attribute
19-
type field_position
20-
real(wp), allocatable, dimension(:, :, :) :: fp !< Field position
21-

0 commit comments

Comments
 (0)