// ChanHH.cxx

#include "ChanHH.h"
#include <math.h>

void ChanHH::Step( const real dt )
{
	// First, update the gating variables.
	// Then conductance G can be computed directly.

	if (Mexp) UpdateM( dt );
	if (Hexp) UpdateH( dt );
	
	// Note: for efficiency, we could restrict the exponents to
	// integers, do a "case" here, and multiply them out the long way...
	
	G = MaxG * pow(M,Mexp) * pow(H,Hexp);
}