Changeset 15728
- Timestamp:
- 08/06/13 14:39:01 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15726 r15728 5597 5597 /*Fetch number of nodes and dof for this finite element*/ 5598 5598 int numnodes = this->NumberofNodes(); 5599 int numdof = numnodes*NDOF1;5600 5599 5601 5600 /*Initialize Element matrix and vectors*/ 5602 5601 ElementMatrix* Ke = new ElementMatrix(nodes,numnodes,this->parameters,NoneApproximationEnum); 5603 5602 IssmDouble* basis = xNew<IssmDouble>(numnodes); 5604 IssmDouble* B = xNew<IssmDouble>(2*num dof);5605 IssmDouble* Bprime = xNew<IssmDouble>(2*num dof);5603 IssmDouble* B = xNew<IssmDouble>(2*numnodes); 5604 IssmDouble* Bprime = xNew<IssmDouble>(2*numnodes); 5606 5605 IssmDouble D[2][2]; 5607 5606 … … 5633 5632 D_scalar=gauss->weight*Jdettria; 5634 5633 5635 TripleMultiply(basis,1,num dof,1,5634 TripleMultiply(basis,1,numnodes,1, 5636 5635 &D_scalar,1,1,0, 5637 basis,1,num dof,0,5636 basis,1,numnodes,0, 5638 5637 Ke->values,1); 5639 5638 … … 5647 5646 D[0][0]=D_scalar*dvxdx; 5648 5647 D[0][1]=0.; 5648 D[1][0]=0.; 5649 5649 D[1][1]=D_scalar*dvydy; 5650 D[1][1]=0.; 5651 TripleMultiply(B,2,numdof,1, 5650 TripleMultiply(B,2,numnodes,1, 5652 5651 &D[0][0],2,2,0, 5653 B,2,num dof,0,5652 B,2,numnodes,0, 5654 5653 &Ke->values[0],1); 5655 5654 5656 5655 D[0][0]=D_scalar*vx; 5657 5656 D[1][1]=D_scalar*vy; 5658 TripleMultiply(B,2,num dof,1,5657 TripleMultiply(B,2,numnodes,1, 5659 5658 &D[0][0],2,2,0, 5660 Bprime,2,num dof,0,5659 Bprime,2,numnodes,0, 5661 5660 &Ke->values[0],1); 5662 5661 … … 5667 5666 D[0][1]=D_scalar*diffusivity*h/(2*vel)*vx*vy; 5668 5667 D[1][1]=D_scalar*diffusivity*h/(2*vel)*vy*vy; 5669 TripleMultiply(Bprime,2,num dof,1,5668 TripleMultiply(Bprime,2,numnodes,1, 5670 5669 &D[0][0],2,2,0, 5671 Bprime,2,num dof,0,5670 Bprime,2,numnodes,0, 5672 5671 &Ke->values[0],1); 5673 5672 } -
issm/trunk-jpl/src/c/main/globals.h
r15048 r15728 13 13 bool IssmComm::parallel; 14 14 15 /*String that is used to characterize our toolkits, ends up in Petsc Options database if we use Petsc. Can also be used to characterize the ISSM toolkit, often used when Petsc is not allowed*/ 15 /*String that is used to characterize our toolkits, ends up in Petsc Options 16 * database if we use Petsc. Can also be used to characterize the ISSM toolkit, 17 * often used when Petsc is not allowed*/ 16 18 char* ToolkitOptions::toolkitoptions; 17 19 -
issm/trunk-jpl/src/c/toolkits/ToolkitOptions.cpp
r15048 r15728 2 2 * \brief file containing the methods for ToolkitOptions.h 3 3 */ 4 5 #ifdef HAVE_CONFIG_H6 #include <config.h>7 #else8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"9 #endif10 4 11 5 #include <string.h> -
issm/trunk-jpl/src/c/toolkits/ToolkitOptions.h
r15048 r15728 7 7 #ifndef _TOOLKIT_OPTIONS_H 8 8 #define _TOOLKIT_OPTIONS_H 9 10 /*{{{*/11 #ifdef HAVE_CONFIG_H12 #include <config.h>13 #else14 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"15 #endif16 17 /*}}}*/18 9 19 10 class ToolkitOptions {
Note:
See TracChangeset
for help on using the changeset viewer.