Commit b8f5ebf8 authored by Aaron Bray's avatar Aaron Bray
Browse files

Fixing a few minor bugs

parent c5faeead
......@@ -1379,11 +1379,16 @@ void Respiratory::Intubation()
m_CarinaToLeftAnatomicDeadSpace->GetNextResistance().SetValue(m_RespOpenResistance_cmH2O_s_Per_L, FlowResistanceUnit::cmH2O_s_Per_L);
break;
}
case eIntubation_Type::LeftMainstem:
case eIntubation_Type::LeftMainstem:
{
m_CarinaToRightAnatomicDeadSpace->GetNextResistance().SetValue(m_RespOpenResistance_cmH2O_s_Per_L, FlowResistanceUnit::cmH2O_s_Per_L);
break;
}
case eIntubation_Type::Off:
{
m_data.SetIntubation(eSwitch::Off);
break;
}
}
}
else
......
......@@ -1252,7 +1252,7 @@ double Tissue::PerfusionLimitedDiffusion(SETissueCompartment& tissue, SELiquidCo
GeneralMath::CalculateConcentration(tSubQ->GetMass(), tissue.GetMatrixVolume(), tissueConcentration, m_Logger);
double TissueConcentration_ug_Per_mL = tissueConcentration.GetValue(MassPerVolumeUnit::ug_Per_mL);
double MassIncrement_ug = 0;
if (!partitionCoeff == 0)
if (partitionCoeff != 0)
{
MassIncrement_ug = VascularFlow_m_LPer_s * timestep_s * (VascularConcentration_ug_Per_mL - (TissueConcentration_ug_Per_mL / partitionCoeff));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment