00001 00002 /******************************************************* 00003 * 00004 * Copyright (c) 2003-2009 by University of Queensland 00005 * Earth Systems Science Computational Center (ESSCC) 00006 * http://www.uq.edu.au/esscc 00007 * 00008 * Primary Business: Queensland, Australia 00009 * Licensed under the Open Software License version 3.0 00010 * http://www.opensource.org/licenses/osl-3.0.php 00011 * 00012 *******************************************************/ 00013 00014 00015 /* */ 00016 /* NodeMapping provides a mapping from the local nodes typically to the degrees of freedom, */ 00017 /* the reduced degrees of freedom or the reduced node set */ 00018 /* */ 00019 00020 #ifndef INC_FINLEY_NODEMAPPING 00021 #define INC_FINLEY_NODEMAPPING 00022 00023 #include "paso/Paso_MPI.h" 00024 00025 00026 struct Finley_NodeMapping { 00027 dim_t numNodes; /* number of FEM nodes */ 00028 index_t *target; /* target[i] defines the target if FEM node i =0,...,numNodes */ 00029 index_t unused; /* target[i]=unused defines that no target is defined for FEM node i */ 00030 dim_t numTargets; /* number of targets */ 00031 index_t *map; /* maps the target nodes back to the FEM nodes: target[map[i]]=i */ 00032 dim_t reference_counter; 00033 }; 00034 typedef struct Finley_NodeMapping Finley_NodeMapping; 00035 00036 Finley_NodeMapping* Finley_NodeMapping_alloc(dim_t numNodes, index_t* target, index_t unused); 00037 void Finley_NodeMapping_free(Finley_NodeMapping*); 00038 Finley_NodeMapping* NodeMapping_getReference(Finley_NodeMapping *in ); 00039 00040 #endif