This function mosCalcNoBypassCode calculates the currents (and the capacitances) that are necessary for the currents sum in the toplevelmodel (level 1).
function mosCalcNoBypassCode extends Modelica.Icons.Function; input Spice3.Internal.Mosfet.Mosfet in_m "Input record MOSFET parameters"; input Integer in_m_type "Type of MOS transistor"; input Spice3.Internal.Mos1.Mos1Calc in_c "Input record Mos1Calc"; input Spice3.Internal.Mos1.Mos1ModelLineParams in_p "Input record model line parameters for MOS1"; input Spice3.Internal.SpiceConstants in_C "Input record SPICE constants"; input MosModelLineVariables in_vp "Input record model line variables"; input Boolean in_m_bInit; input SI.Voltage[4] in_m_pVoltageValues; output CurrrentsCapacitances out_cc; end mosCalcNoBypassCode;