From f3d77f401e026ae8e33df30e4d1b0dfa4e9f7f88 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 15 Nov 2024 22:37:55 -0500 Subject: [PATCH] [Examples] Fix use of kineticsSpeciesIndex in diamond_cvd Fixes #1806 --- samples/matlab_experimental/diamond_cvd.m | 2 +- samples/python/kinetics/diamond_cvd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/matlab_experimental/diamond_cvd.m b/samples/matlab_experimental/diamond_cvd.m index fd5803df71..651d4ec6f6 100644 --- a/samples/matlab_experimental/diamond_cvd.m +++ b/samples/matlab_experimental/diamond_cvd.m @@ -56,7 +56,7 @@ %% Advance Coverages -iC = surf_phase.kineticsSpeciesIndex('C(d)', 'diamond'); +iC = surf_phase.kineticsSpeciesIndex('C(d)'); xx = []; rr = []; diff --git a/samples/python/kinetics/diamond_cvd.py b/samples/python/kinetics/diamond_cvd.py index 60354a42f5..6c249701d6 100644 --- a/samples/python/kinetics/diamond_cvd.py +++ b/samples/python/kinetics/diamond_cvd.py @@ -41,7 +41,7 @@ writer.writerow(['H mole Fraction', 'Growth Rate (microns/hour)'] + d.species_names) - iC = d.kinetics_species_index(dbulk.species_index('C(d)'), 1) + iC = d.kinetics_species_index('C(d)') for n in range(20): x[ih] /= 1.4