
Dear All,

I am quite new to C programming and would like to get a help from you.

I am using deSolve to solve ODEs which are implemented in C program. I have two
events functions at different time sequences and dont know how to integrate them
in the integration routine "ode".

first event: DOevent should be in this time sequence:  seq(1,100,1)

void DOevent(int *n, double *t, double *y) {

    DO =   1.5*DO ;

}

Second event: NOevent should be in this time sequence:  seq(200,300,1)

void NOevent(int *n, double *t, double *y) {

 NO3 = 1.001*NO3;

}

Thanks in advance

--------------------------------------------------------------------
Mohamed Omari
PhD Student

Leibniz Centre for Agricultural Landscape Research (ZALF), Müncheberg
Institute of Landscape Hydrology
Eberswalder Straße 84
D-15374 Müncheberg
Germany
	[[alternative HTML version deleted]]

