Changeset 663 in Sophya for trunk/SophyaLib/NTools/fftpackc.c
- Timestamp:
- Nov 29, 1999, 1:48:11 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/fftpackc.c
r459 r663 8 8 /* #include "f2c.h" -- Remplace par ce qui suit */ 9 9 #include "fftpackc.h" 10 #include <math.h> 10 11 11 12 /* ------ File cfftb.f ------ */ … … 26 27 iw1 = *n + *n + 1; 27 28 iw2 = iw1 + *n + *n; 28 cfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);29 cfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute - Reza 29/11/99 */ 29 30 return 0; 30 31 } /* cfftb_ */ … … 179 180 iw1 = *n + *n + 1; 180 181 iw2 = iw1 + *n + *n; 181 cfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);182 cfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute - Reza 29/11/99 */ 182 183 return 0; 183 184 } /* cfftf_ */ … … 330 331 iw1 = *n + *n + 1; 331 332 iw2 = iw1 + *n + *n; 332 cffti1_(n, &wsave[iw1], &wsave[iw2]);333 cffti1_(n, &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute Reza 29/11/99 */ 333 334 return 0; 334 335 } /* cffti_ */ … … 344 345 integer i__1, i__2, i__3; 345 346 346 /* Builtin functions */ 347 double cos(doublereal), sin(doublereal); 347 /* Builtin functions */ 348 /* double cos(doublereal), sin(doublereal); commente, remplace par math.h - Reza 29/11/99 */ 348 349 349 350 /* Local variables */ … … 645 646 646 647 /* Builtin functions */ 647 double cos(doublereal); 648 /* double cos(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 648 649 649 650 /* Local variables */ … … 762 763 763 764 /* Builtin functions */ 764 double sin(doublereal), cos(doublereal); 765 /* double sin(doublereal), cos(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 765 766 766 767 /* Local variables */ … … 807 808 808 809 /* Builtin functions */ 809 double cos(doublereal), sin(doublereal); 810 /* double cos(doublereal), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 810 811 811 812 /* Local variables */ … … 2728 2729 2729 2730 /* Builtin functions */ 2730 double cos(doublereal), sin(doublereal); 2731 /* double cos(doublereal), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 2731 2732 2732 2733 /* Local variables */ … … 3460 3461 3461 3462 /* Builtin functions */ 3462 double cos(doublereal), sin(doublereal); 3463 /* double cos(doublereal), sin(doublereal); */ 3463 3464 3464 3465 /* Local variables */ … … 3807 3808 return 0; 3808 3809 } 3809 rfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);3810 rfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 3810 3811 return 0; 3811 3812 } /* rfftb_ */ … … 3953 3954 return 0; 3954 3955 } 3955 rfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);3956 rfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 3956 3957 return 0; 3957 3958 } /* rfftf_ */ … … 4092 4093 return 0; 4093 4094 } 4094 rffti1_(n, &wsave[*n + 1], &wsave[(*n << 1) + 1]);4095 rffti1_(n, &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 4095 4096 return 0; 4096 4097 } /* rffti_ */ … … 4107 4108 4108 4109 /* Builtin functions */ 4109 double cos(doublereal), sin(doublereal); 4110 /* double cos(doublereal), sin(doublereal); Remplace par math.h , Reza 29/11/99 */ 4110 4111 4111 4112 /* Local variables */ … … 4319 4320 iw2 = iw1 + np1; 4320 4321 iw3 = iw2 + np1; 4321 sint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], &wsave[iw3]);4322 sint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], (int *)&wsave[iw3]); /* (int *) rajoute Reza 29/11/99 */ 4322 4323 return 0; 4323 4324 } /* sint_ */ … … 4420 4421 4421 4422 /* Builtin functions */ 4422 double sin(doublereal); 4423 /* double sin(doublereal); remplace par math.h , Reza 29/11/99 */ 4423 4424 4424 4425 /* Local variables */ … … 4465 4466 iw1 = *n + *n + 1; 4466 4467 iw2 = iw1 + *n + *n; 4467 cdfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);4468 cdfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4468 4469 return 0; 4469 4470 } /* cdfftb_ */ … … 4618 4619 iw1 = *n + *n + 1; 4619 4620 iw2 = iw1 + *n + *n; 4620 cdfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);4621 cdfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4621 4622 return 0; 4622 4623 } /* cdfftf_ */ … … 4769 4770 iw1 = *n + *n + 1; 4770 4771 iw2 = iw1 + *n + *n; 4771 cdffti1_(n, &wsave[iw1], &wsave[iw2]);4772 cdffti1_(n, &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4772 4773 return 0; 4773 4774 } /* cdffti_ */ … … 4784 4785 4785 4786 /* Builtin functions */ 4786 double cos(doublereal), sin(doublereal); 4787 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 4787 4788 4788 4789 /* Local variables */ … … 5084 5085 5085 5086 /* Builtin functions */ 5086 double cos(doublereal); 5087 /* double cos(doublereal); remplace par math.h Reza 29/11/99 */ 5087 5088 5088 5089 /* Local variables */ … … 5201 5202 5202 5203 /* Builtin functions */ 5203 double sin(doublereal), cos(doublereal); 5204 /* double sin(doublereal), cos(doublereal); remplace par math.h Reza 29/11/99 */ 5204 5205 5205 5206 /* Local variables */ … … 5246 5247 5247 5248 /* Builtin functions */ 5248 double cos(doublereal), sin(doublereal); 5249 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 5249 5250 5250 5251 /* Local variables */ … … 7167 7168 7168 7169 /* Builtin functions */ 7169 double cos(doublereal), sin(doublereal); 7170 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 7170 7171 7171 7172 /* Local variables */ … … 7899 7900 7900 7901 /* Builtin functions */ 7901 double cos(doublereal), sin(doublereal); 7902 /* double cos(doublereal), sin(doublereal); */ 7902 7903 7903 7904 /* Local variables */ … … 8246 8247 return 0; 8247 8248 } 8248 dfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);8249 dfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 8249 8250 return 0; 8250 8251 } /* dfftb_ */ … … 8392 8393 return 0; 8393 8394 } 8394 dfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);8395 dfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]);/* (int *) rajoute Reza 29/11/99 */ 8395 8396 return 0; 8396 8397 } /* dfftf_ */ … … 8531 8532 return 0; 8532 8533 } 8533 dffti1_(n, &wsave[*n + 1], &wsave[(*n << 1) + 1]);8534 dffti1_(n, &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 8534 8535 return 0; 8535 8536 } /* dffti_ */ … … 8546 8547 8547 8548 /* Builtin functions */ 8548 double cos(doublereal), sin(doublereal); 8549 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 8549 8550 8550 8551 /* Local variables */ … … 8758 8759 iw2 = iw1 + np1; 8759 8760 iw3 = iw2 + np1; 8760 dsint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], &wsave[iw3]);8761 dsint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], (int *) &wsave[iw3]); /* (int *) rajoute Reza 29/11/99 */ 8761 8762 return 0; 8762 8763 } /* dsint_ */ … … 8859 8860 8860 8861 /* Builtin functions */ 8861 double sin(doublereal); 8862 /* double sin(doublereal); remplace par math.h Reza 29/11/99 */ 8862 8863 8863 8864 /* Local variables */
Note:
See TracChangeset
for help on using the changeset viewer.