Guest User

Untitled

a guest
May 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. void initialization_1(double *x, double **A, double **delta, double **Phi, double **Pi){
  2. int i;
  3. for(i=0;i<SIZE;i++){
  4. (*Phi)[i]=0.0;
  5. (*Pi)[i]=2.0*eps*exp(-(4.0*pow(tan(x[i]),2.0))/pow(M_PI*sigma,2))/M_PI;
  6. }
  7. *A=A_Solver(x, *Phi, *Pi);
  8. *delta=Delta_Solver(x, *Phi, *Pi);
  9. }
  10.  
  11. int main(){
  12. double* x=initialize_x();
  13. double h=x[1];
  14. double A[SIZE];
  15. double delta[SIZE];
  16. double Phi[SIZE];
  17. double Pi[SIZE];
  18. initialization_1(x, &A, &delta, &Phi, &Pi);
  19. return 0;
  20. }
  21.  
  22. warning: passing argument 2 of 'initialization_1' from incompatible pointer type [-Wincompatible-pointer-types]|
  23. note: expected 'double **' but argument is of type 'double (*)[4096]'|
Add Comment
Please, Sign In to add comment