- Timestamp:
- 08/19/11 18:04:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp
r9320 r9356 24 24 int dummy; 25 25 26 int qmu_npart;26 int npart; 27 27 double *qmu_part = NULL; 28 28 int numberofvertices; … … 39 39 /*Some parameters: */ 40 40 numberofvertices=vertices->NumberOfVertices(); 41 parameters->FindParam(& qmu_npart,QmuNPartEnum);41 parameters->FindParam(&npart,NpartEnum); 42 42 43 43 /*average onto the separate areas. The result will be a npart sized vector. */ 44 44 45 45 /*allocate: */ 46 partition_contributions=NewVec( qmu_npart);47 partition_areas=NewVec( qmu_npart);48 vec_average=NewVec( qmu_npart);46 partition_contributions=NewVec(npart); 47 partition_areas=NewVec(npart); 48 vec_average=NewVec(npart); 49 49 50 50 /*loop on each element, and add contribution of the element to the partition (surface weighted average): */
Note:
See TracChangeset
for help on using the changeset viewer.