@@ -177,11 +177,9 @@ def separate_stoichiometry(input_species):
177177 else : # if there is no coefficient then output an assumed coefficient of 1
178178 return (1.0 , pat_match [2 ])
179179 else :
180- raise Exception (
181- f"""Reaction species does not match the correct
180+ raise Exception (f"""Reaction species does not match the correct
182181 format: '{ input_species } '. Note that species names should
183- not begin with numerical characters."""
184- )
182+ not begin with numerical characters.""" )
185183
186184
187185# ======================================================
@@ -643,8 +641,7 @@ def convert_to_fortran(mechFile, configDir, sharedDir, mcmV):
643641
644642 # Combine mechanism rates and RO2 sum files.
645643 with open (os .path .join (sharedDir , "mechanism.f90" ), "a" ) as mech_rates_coeff_file :
646- mech_rates_coeff_file .write (
647- """
644+ mech_rates_coeff_file .write ("""
648645module mechanism_mod
649646 use, intrinsic :: iso_c_binding
650647 implicit none
@@ -657,8 +654,7 @@ def convert_to_fortran(mechFile, configDir, sharedDir, mcmV):
657654 integer, parameter :: DP = selected_real_kind( p = 15, r = 307 )
658655 real(c_double), intent(inout) :: p(*), q(*)
659656 real(c_double), intent(in) :: t, TEMP, N2, O2, M, RH, H2O, BLHEIGHT, DEC, JFAC, DILUTE, ROOFOPEN, ASA, J(*), RO2
660- """
661- )
657+ """ )
662658
663659 # Write out 'Generic Rate Coefficients' and 'Complex reactions'.
664660 for item in mechanism_rates_coeff_list :
@@ -667,12 +663,10 @@ def convert_to_fortran(mechFile, configDir, sharedDir, mcmV):
667663 # Write out 'Reaction definitions'.
668664 for r in mech_rates_list :
669665 mech_rates_coeff_file .write (r )
670- mech_rates_coeff_file .write (
671- """
666+ mech_rates_coeff_file .write ("""
672667 end subroutine update_p
673668end module mechanism_mod
674- """
675- )
669+ """ )
676670
677671 # -------------------------------------------------
678672
0 commit comments