GemaPCR
The GeMA PCR (Partition-Color-Renumber) Plugin
Loading...
Searching...
No Matches
gmpMortonNodeRenumbering.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_GEMA_PCR_MORTONNODERENUMBERING_H_
25#define _GEMA_PLUGIN_GEMA_PCR_MORTONNODERENUMBERING_H_
26
27#include "gmpGemaCR.h"
28
32template <class IntVector>
34{
35public:
36 // Inherit base class constructor
37 using GmpNodeRenumberingMethod::GmpNodeRenumberingMethod;
38
39 virtual bool checkOptions (const GmLogCategory& logger);
40 virtual void printParameters(const GmLogCategory& logger) const;
41
42 virtual bool renumber(GmValueAccessor* ac, IntVector& sortedToOriginal, const GmLogCategory& logger) const;
43};
44
45
46#endif
Implements the renumbering agorithm based on the Morton space-filling curve, a.k.a Z-curve....
Definition gmpMortonNodeRenumbering.h:34
virtual bool renumber(GmValueAccessor *ac, IntVector &sortedToOriginal, const GmLogCategory &logger) const
The node renumbering function. It gets as input parameter an accessor to the mesh coordinates....
Definition gmpMortonNodeRenumbering.cpp:53
virtual bool checkOptions(const GmLogCategory &logger)
Virtual method responsible for validating the parameters supplied on the class constructor....
Definition gmpMortonNodeRenumbering.cpp:35
virtual void printParameters(const GmLogCategory &logger) const
Virtual method responsible for printing the renumbering method description.
Definition gmpMortonNodeRenumbering.cpp:44
The abstract interface for a node renumbering method implementation. Template parameters is the type ...
Definition gmpGemaCR.h:99
Declaration of the GmpGemaCR class & friends.