From 7616ded5382fe5b6ad5a6a5e1d89f7ffda754c0b Mon Sep 17 00:00:00 2001 From: "Paul T. Bauman" Date: Thu, 26 Jul 2018 08:27:25 -0400 Subject: [PATCH] Fix grabbing wrong mixture This was sneaky and I only noticed where there was an erroant message of opening the default transport file. We wanted a TransportMixture, but we grabbed a ChemicalMixture (probably a copy/paste bug). But TransportMixture has a bunch of default arguments so a ChemicalMixture was enough to trigger construction of a TransportMixture with default things. This would've been frustrating once we tried to do this with species that weren't in the default transport data file. --- src/parsing/src/blottner_parsing.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing/src/blottner_parsing.C b/src/parsing/src/blottner_parsing.C index f8aa1bfb..d8dca369 100644 --- a/src/parsing/src/blottner_parsing.C +++ b/src/parsing/src/blottner_parsing.C @@ -85,7 +85,7 @@ namespace Antioch // If we requested Blottner viscosity for our mixture, we'd better // have Blottner viscosity data for every species in our mixture. - const TransportMixture& trans_mixture = mu.chemical_mixture(); + const TransportMixture & trans_mixture = mu.transport_mixture(); const unsigned int n_species = trans_mixture.n_species(); if (mu.species_viscosities().size() < n_species)