switchn.c

Go to the documentation of this file.
00001 /* Copyright INRIA */
00002 #include "machine.h"
00003 
00004 void 
00005 switchn(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,rpar,nrpar,
00006                ipar,nipar,inptr,insz,nin,outptr,outsz,nout)
00007 integer *flag,*nevprt,*nx,*nz,*ntvec,*nrpar,ipar[],*nipar,insz[],*nin,outsz[],*nout;
00008 double x[],xd[],z[],tvec[],rpar[];
00009 double *inptr[],*outptr[],*t;
00010 
00011 {
00012 
00013     int k;
00014     double *y;
00015     double *u;
00016     int /*nev,*/ic;
00017     ic=ipar[0];
00018     if (*nin>1) {
00019       y=(double *)outptr[0];
00020       u=(double *)inptr[ic];
00021       for (k=0;k<outsz[0];k++)
00022         *(y++)=*(u++);  
00023     }
00024     else {
00025       y=(double *)outptr[ic];
00026       u=(double *)inptr[0];
00027       for (k=0;k<outsz[0];k++)
00028         *(y++)=*(u++);  
00029     }
00030 }
00031 
00032 
00033 

Generated on Sun Mar 4 15:04:00 2007 for Scilab [trunk] by  doxygen 1.5.1