Skip to content

Commit

Permalink
Merge pull request #438 from AtChem/fix_c_bind_bug
Browse files Browse the repository at this point in the history
Fix c-bind bug in update_p()
  • Loading branch information
spco committed Jan 6, 2021
2 parents abf98ac + 6fb2683 commit be547fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/mech_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def convert(input_file, mech_dir, mcm_dir):
subroutine update_p(p, q, TEMP, N2, O2, M, RH, H2O, BLHEIGHT, DEC, JFAC, DILUTE, ROOFOPEN, ASA, J, RO2) bind(c,name='update_p')
integer, parameter :: DP = selected_real_kind( p = 15, r = 307 )
real(c_double), intent(inout) :: p(:), q(:)
real(c_double), intent(in) :: TEMP, N2, O2, M, RH, H2O, BLHEIGHT, DEC, JFAC, DILUTE, ROOFOPEN, ASA, J(:), RO2
real(c_double), intent(inout) :: p(*), q(*)
real(c_double), intent(in) :: TEMP, N2, O2, M, RH, H2O, BLHEIGHT, DEC, JFAC, DILUTE, ROOFOPEN, ASA, J(*), RO2
""")
# Write out Generic Rate Coefficients and Complex reactions
for item in mechanism_rates_coeff_list:
Expand Down
4 changes: 2 additions & 2 deletions src/solverFunctions.f90
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module solver_functions_mod
abstract interface
subroutine called_proc( i, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16 ) bind ( c )
use, intrinsic :: iso_c_binding
real(c_double), intent(inout) :: i(:), i2(:)
real(c_double), intent(in) :: i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15(:), i16
real(c_double), intent(inout) :: i(*), i2(*)
real(c_double), intent(in) :: i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15(*), i16
end subroutine called_proc
end interface

Expand Down

0 comments on commit be547fc

Please sign in to comment.