12.07.2015 Views

Quels apports hydrologiques pour les modèles hydrauliques? Vers ...

Quels apports hydrologiques pour les modèles hydrauliques? Vers ...

Quels apports hydrologiques pour les modèles hydrauliques? Vers ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Annexe E. Algorithmique et codes C des modè<strong>les</strong> GR4H et Hayami 289}/* ************** Core s u b r o u t i n e ****************************** */v o i d c HAYAMI( l o n g i n t nval , double * PAS , double * Xinp , double * LTRO,double * Qam, double * Qav ){i n t i , j , ikermax ;double TH, Z ,SOMCONV, Qam i , SOMCONV et IKERMAX [ 2 ] , longTron ;double UH[ SIZEUH ] ,UHVAR[ SIZEUH ] ;tel-00392240, version 1 - 5 Jun 2009/* −−− Parameters v a l i d a t i o n e t t r a n s f o r m a t i o n −−−−−−−−−−−−−−−−− */i f (LTRO[0] 0 ){Z=longTron * Xinp [ 0 ] / Xinp [ 1 ] / 4 ;}/* −−− C a l c u l de l ’ hydrogramme u n i t a i r e d ’ Hayami −−−−−−−−−*/REMPLI KERHAY(PAS ,TH, Z ,UHVAR,UH, SOMCONV et IKERMAX ) ;SOMCONV=SOMCONV et IKERMAX [ 0 ] ;ikermax =( i n t ) ( SOMCONV et IKERMAX [ 1 ] ) ;/* −−−−−−− l o o p o v e r data −−−−−−−− */Qam i =0;f o r ( i =0; i =0 && i >0){Qam i=Qam[ i ] ; }f o r ( j =0; j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!