Changeset 5782
- Timestamp:
- 09/13/10 15:22:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/SystemMatricesx/SystemMatricesx.cpp
r5772 r5782 42 42 fsize=nodes->NumberOfDofs(configuration_type,FsetEnum); 43 43 ssize=nodes->NumberOfDofs(configuration_type,SsetEnum); 44 44 45 numberofdofspernode=nodes->MaxNumDofs(configuration_type,GsetEnum); 45 46 46 47 /*Checks in debugging mode {{{1*/ 47 ISSMASSERT(*pKgg==NULL);48 ISSMASSERT(*ppg==NULL);49 48 if(penalty_kflag)ISSMASSERT(kflag); 50 49 if(penalty_pflag)ISSMASSERT(pflag); … … 90 89 if(pflag){ 91 90 92 pg=NewVec(gsize); 91 if(!buildkff)pg=NewVec(gsize); 92 else pf=NewVec(fsize); 93 93 94 94 /*Fill right hand side vector, from elements: */ … … 114 114 } 115 115 116 116 /*Now, figure out maximum value of K_gg, so that we can penalize it correctly: */ 117 if(!buildkff)MatNorm(Kgg,NORM_INFINITY,&kmax); 118 else MatNorm(Kff,NORM_INFINITY,&kmax); 119 117 120 /*Now, deal with penalties*/ 118 121 if(penalty_kflag){ 119 120 /*Now, figure out maximum value of K_gg, so that we can penalize it correctly: */121 if(!buildkff)MatNorm(Kgg,NORM_INFINITY,&kmax);122 else MatNorm(Kff,NORM_INFINITY,&kmax);123 122 124 123 /*Fill stiffness matrix from loads: */
Note:
See TracChangeset
for help on using the changeset viewer.