275 |
int_ptr = &mesh->Nodes->degreesOfFreedomDistribution->first_component[0]; |
int_ptr = &mesh->Nodes->degreesOfFreedomDistribution->first_component[0]; |
276 |
if (! (ids->put(int_ptr, mpi_size+1)) ) |
if (! (ids->put(int_ptr, mpi_size+1)) ) |
277 |
throw DataException("Error - MeshAdapter::dump: copy Nodes_DofDistribution to netCDF buffer failed: " + *newFileName); |
throw DataException("Error - MeshAdapter::dump: copy Nodes_DofDistribution to netCDF buffer failed: " + *newFileName); |
278 |
|
{ int i; printf("ksteube wrote Nodes_DofDistribution:"); for(i=0; i<mpi_size+1; i++) printf(" %d", mesh->Nodes->degreesOfFreedomDistribution->first_component[i]); printf("\n"); } |
279 |
|
|
280 |
|
// Nodes nodeDistribution |
281 |
|
if (! ( ids = dataFile.add_var("Nodes_NodeDistribution", ncInt, ncdims[2])) ) |
282 |
|
throw DataException("Error - MeshAdapter::dump: appending Nodes_NodeDistribution to netCDF file failed: " + *newFileName); |
283 |
|
int_ptr = &mesh->Nodes->nodesDistribution->first_component[0]; |
284 |
|
if (! (ids->put(int_ptr, mpi_size+1)) ) |
285 |
|
throw DataException("Error - MeshAdapter::dump: copy Nodes_NodeDistribution to netCDF buffer failed: " + *newFileName); |
286 |
|
{ int i; printf("ksteube wrote Nodes_NodeDistribution:"); for(i=0; i<mpi_size+1; i++) printf(" %d", mesh->Nodes->nodesDistribution->first_component[i]); printf("\n"); } |
287 |
|
|
288 |
} |
} |
289 |
|
|