Changeset 3879
- Timestamp:
- 05/21/10 12:56:28 (15 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/SystemMatricesx/SystemMatricesx.cpp
r3835 r3879 11 11 12 12 void SystemMatricesx(Mat* pKgg, Vec* ppg,DataSet* elements,DataSet* nodes, DataSet* vertices,DataSet* loads,DataSet* materials, Parameters* parameters, 13 int kflag,int pflag,int connectivity,int numberofdofspernode,intanalysis_type,int sub_analysis_type){13 int kflag,int pflag,int analysis_type,int sub_analysis_type){ 14 14 15 15 extern int num_procs; … … 18 18 /*intermediary: */ 19 19 int gsize; 20 20 int connectivity; 21 int numberofdofspernode; 22 21 23 /*output: */ 22 24 Mat Kgg=NULL; … … 28 30 loads->Configure(elements, loads, nodes,vertices, materials,parameters); 29 31 parameters->Configure(elements,loads, nodes,vertices, materials,parameters); 32 33 /*Recover parameters: */ 34 parameters->FindParam(&connectivity,ConnectivityEnum); 35 parameters->FindParam(&numberofdofspernode,NumberOfDofsPerNodeEnum); 30 36 31 37 /*Get size of matrix: */ -
issm/trunk/src/c/SystemMatricesx/SystemMatricesx.h
r3673 r3879 11 11 /* local prototypes: */ 12 12 void SystemMatricesx(Mat* pKgg, Vec* ppg,DataSet* elements,DataSet* nodes, DataSet* vertices,DataSet* loads,DataSet* materials, Parameters* parameters, 13 int kflag,int pflag,int connectivity,int numberofdofspernode,intanalysis_type,int sub_analysis_type);13 int kflag,int pflag,int analysis_type,int sub_analysis_type); 14 14 15 15 #endif /* _SYSTEMMATRICESX_H */ -
issm/trunk/src/c/parallel/diagnostic_core_linear.cpp
r3732 r3879 11 11 12 12 /*parameters:*/ 13 int kflag,pflag ,connectivity,numberofdofspernode;13 int kflag,pflag; 14 14 int verbose=0; 15 15 char* solver_string=NULL; … … 28 28 /*Recover parameters: */ 29 29 kflag=1; pflag=1; 30 fem->parameters->FindParam(&connectivity,ConnectivityEnum);31 fem->parameters->FindParam(&numberofdofspernode,NumberOfDofsPerNodeEnum);32 30 fem->parameters->FindParam(&verbose,VerboseEnum); 33 31 fem->parameters->FindParam(&solver_string,SolverStringEnum); … … 35 33 //*Generate system matrices 36 34 if (verbose) _printf_(" Generating matrices\n"); 37 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);35 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); 38 36 39 37 if (verbose) _printf_(" Generating penalty matrices\n"); -
issm/trunk/src/c/parallel/diagnostic_core_nonlinear.cpp
r3823 r3879 34 34 35 35 /*parameters:*/ 36 int kflag,pflag ,connectivity,numberofdofspernode;36 int kflag,pflag; 37 37 char* solver_string=NULL; 38 38 int verbose=0; … … 40 40 /*Recover parameters: */ 41 41 kflag=1; pflag=1; 42 fem->FindParam(&connectivity,ConnectivityEnum);43 fem->FindParam(&numberofdofspernode,NumberOfDofsPerNodeEnum);44 42 fem->FindParam(&numberofnodes,NumberOfNodesEnum); 45 43 fem->FindParam(&solver_string,SolverStringEnum); … … 71 69 if (verbose) _printf_(" Generating matrices\n"); 72 70 //*Generate system matrices 73 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,loads,fem->materials,fem->parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);71 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); 74 72 75 73 if (verbose) _printf_(" Generating penalty matrices\n"); … … 138 136 kflag=1; pflag=0; //stiffness generation only 139 137 140 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,loads,fem->materials,fem->parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);138 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); 141 139 Reducematrixfromgtofx(&Kff,&Kfs,Kgg,fem->Gmn,fem->nodesets); 142 140 MatFree(&Kgg);VecFree(&pg); -
issm/trunk/src/c/parallel/thermal_core_nonlinear.cpp
r3876 r3879 34 34 35 35 /*parameters:*/ 36 int kflag,pflag ,connectivity,numberofdofspernode;36 int kflag,pflag; 37 37 char* solver_string=NULL; 38 38 int verbose=0; … … 42 42 kflag=1; pflag=1; 43 43 44 fem->parameters->FindParam(&connectivity,ConnectivityEnum);45 fem->parameters->FindParam(&numberofdofspernode,NumberOfDofsPerNodeEnum);46 44 fem->parameters->FindParam(&numberofnodes,NumberOfNodesEnum); 47 45 fem->parameters->FindParam(&solver_string,SolverStringEnum); … … 65 63 /*Compute Kgg_nopenalty and pg_nopenalty once for all: */ 66 64 if (count==1){ 67 SystemMatricesx(&Kgg_nopenalty, &pg_nopenalty,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);65 SystemMatricesx(&Kgg_nopenalty, &pg_nopenalty,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); 68 66 } 69 67 … … 76 74 } 77 75 else{ 78 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);76 SystemMatricesx(&Kgg, &pg,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); 79 77 //apply penalties 80 78 PenaltySystemMatricesx(Kgg, pg,&melting_offset,fem->elements,fem->nodes,fem->vertices,fem->loads,fem->materials,fem->parameters,kflag,pflag,analysis_type,sub_analysis_type); -
issm/trunk/src/mex/SystemMatrices/SystemMatrices.cpp
r3841 r3879 18 18 Parameters* parameters=NULL; 19 19 int kflag,pflag; 20 int connectivity;21 int numberofdofspernode;22 20 int analysis_type; 23 21 int sub_analysis_type; … … 42 40 43 41 /*parameters: */ 44 parameters->FindParam(&connectivity,ConnectivityEnum);45 parameters->FindParam(&numberofdofspernode,NumberOfDofsPerNodeEnum);46 42 parameters->FindParam(&kflag,KflagEnum); 47 43 parameters->FindParam(&pflag,PflagEnum); … … 51 47 52 48 /*!Generate internal degree of freedom numbers: */ 53 SystemMatricesx(&Kgg, &pg,elements,nodes,vertices,loads,materials,parameters,kflag,pflag, connectivity,numberofdofspernode,analysis_type,sub_analysis_type);49 SystemMatricesx(&Kgg, &pg,elements,nodes,vertices,loads,materials,parameters,kflag,pflag,analysis_type,sub_analysis_type); 54 50 55 51 /*write output datasets: */
Note:
See TracChangeset
for help on using the changeset viewer.