Go to the source code of this file.
Functions | |
| double | detJ (int m) |
|
|
Definition at line 29 of file detJ.h. References coord, d_base_geo, dim, ng, and noeud_geo. Referenced by def_global_weights_all(). 00030 { 00031 int k1,k2; 00032 double a[3][3]; // i=1..dim, j=1..dim 00033 00034 // memset(&a,0,sizeof(a)); 00035 for(k1=0;k1<dim;k1++) 00036 for(k2=0;k2<dim;k2++) a[k1][k2]=0.0; 00037 00038 for(k1=0;k1<dim;k1++) 00039 for(k2=0;k2<dim;k2++){ 00040 int n; 00041 for(n=0;n<ng;n++) a[k1][k2]+=coord[k1][noeud_geo[n][m]-1]*d_base_geo[k2][n]; 00042 } 00043 // printf("%g\n",a[0][0]*a[1][1]-a[0][1]*a[1][0]); 00044 return a[0][0]*a[1][1]*a[2][2]+a[0][1]*a[1][2]*a[2][0]+a[0][2]*a[1][0]*a[2][1] 00045 -(a[2][0]*a[1][1]*a[0][2]+a[2][1]*a[1][2]*a[0][0]+a[2][2]*a[1][0]*a[0][1]); 00046 }
|