@@ -84,12 +84,26 @@ void main_driver(const char* argv)
8484 }
8585#endif
8686
87- int step_start, statsCount;
88- amrex::Real time;
87+ #if defined(PELEPHYSICS)
88+ // Set nspecies = MAX_SPECIES
89+ nspecies = int (MAX_SPECIES );
90+ nvars = AMREX_SPACEDIM + 2 + nspecies;
91+ nprimvars = AMREX_SPACEDIM + 3 + 2 *nspecies;
92+
93+ // Set molmass
94+ for (int i=0 ; i<MAX_SPECIES ; ++i) {
95+ molmass[i] = h_global_mw[i];
96+ }
8997
98+ amrex::Print () << " starting simulation with " << nspecies << " \n " ;
99+ #else
90100 // if gas heat capacities in the namelist are negative, calculate them using using dofs.
91101 // This will only update the Fortran values.
92102 GetHcGas ();
103+ #endif
104+
105+ int step_start, statsCount;
106+ amrex::Real time;
93107
94108 // check bc_vel_lo/hi to determine the periodicity
95109 Vector<int > is_periodic (AMREX_SPACEDIM ,0 ); // set to 0 (not periodic) by default
@@ -771,6 +785,13 @@ void main_driver(const char* argv)
771785 // }
772786 conservedToPrimitiveStag (prim, vel, cu, cumom);
773787
788+ // get transport coefficients
789+ #if defined(PELEPHYSICS)
790+ calculateTransportCoeffs (prim, eta, zeta, kappa, chi, D, trans_parms);
791+ #else
792+ calculateTransportCoeffs (prim, eta, zeta, kappa, chi, D);
793+ #endif
794+
774795 if (n_ads_spec>0 ) {
775796 init_surfcov (surfcov, geom);
776797 }
0 commit comments