Modified fndWaterFracMelt so that if no CO2 is present, then dPartialPressCO2Atm and dPressCO2Atm are set to 0.
@@ -1042,6 +1042,9 @@ void fndWaterFracMelt(BODY *body, int iBody) {
// get average molar mass
// dAveMolarMassAtm = body[iBody].dPartialPressCO2Atm * MOLWEIGHTCO2 / body[iBody].dPressCO2Atm;
}
+ } else { // No CO2 in atmosphere
+ body[iBody].dPartialPressCO2Atm = 0;
+ body[iBody].dPressCO2Atm = 0;
}
if (body[iBody].dPressCO2Atm > 0) {
