Beispiel #1
0
 //NETLIB_TIMESTEPI()
 public override void timestep(timestep_type ts_type, nl_fptype step)
 {
     if (ts_type == timestep_type.FORWARD)
     {
         // G, Ieq
         var       res = m_cap.timestep(m_C.op(), deltaV(), step);
         nl_fptype G   = res.first;
         nl_fptype I   = res.second;
         set_mat(G, -G, -I,
                 -G, G, I);
     }
     else
     {
         m_cap.restore_state();
     }
 }
Beispiel #2
0
 public virtual void timestep(timestep_type ts_type, nl_fptype st)
 {
 }                                                                    //plib::unused_var(ts_type, st); }