Main Page | Directories | File List | File Members

define_d_base_K.h File Reference

Go to the source code of this file.

Functions

void define_d_base_K (void)


Function Documentation

void define_d_base_K void   ) 
 

Definition at line 29 of file define_d_base_K.h.

References d_base_K, d_base_ref, dim, inv_jac_K, Ne, nf, and printf().

Referenced by main().

00030 {
00031  int k,n,m;
00032  
00033 // reset the array
00034 // memset(&d_base_K,0,sizeof(d_base_K));
00035  for(k=0;k<dim;k++)
00036   for(n=0;n<nf;n++)
00037     for(m=0;m<Ne;m++)
00038      d_base_K[k][n][m]=0.0;
00039      
00040 // compute the various components of the array
00041  for(k=0;k<dim;k++)
00042   for(n=0;n<nf;n++)
00043    for(m=0;m<Ne;m++){
00044     int k2;
00045     for(k2=0;k2<dim;k2++) d_base_K[k][n][m]+=d_base_ref[k2][n]*inv_jac_K[k2][k][m];
00046    }
00047 /* for(k=0;k<dim;k++)
00048   for(n=0;n<nf;n++)
00049    for(l=0;l<lg;l++)
00050     for(m=0;m<Ne;m++) printf("d_base_K[%d][%d][%d][%d]= %g\n",k,n,l,m,d_base_K[k][n][l][m]);
00051 */
00052  printf("components of derivatives of shape functions computed...\n");
00053 }


© sourcejam.com 2005-2008