MeshDistributor.h 19.9 KB
Newer Older
1 2 3 4
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
5
// ==  http://www.amdis-fem.org                                              ==
6 7
// ==                                                                        ==
// ============================================================================
8 9 10 11 12 13 14 15 16 17 18 19
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology 
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.


20

21
/** \file MeshDistributor.h */
22

23 24
#ifndef AMDIS_MESHDISTRIBUTOR_H
#define AMDIS_MESHDISTRIBUTOR_H
25 26 27


#include <map>
28
#include <set>
29
#include <vector>
Thomas Witkowski's avatar
Thomas Witkowski committed
30
#include <mpi.h>
31

32
#include "parallel/MeshPartitioner.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
33
#include "parallel/InteriorBoundary.h"
34
#include "AMDiS_fwd.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
35
#include "Global.h"
36 37
#include "ProblemTimeInterface.h"
#include "ProblemIterationInterface.h"
38
#include "FiniteElemSpace.h"
39
#include "Serializer.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
40
#include "BoundaryManager.h"
41
#include "ElementObjectData.h"
42
#include "SystemVector.h"
43

44
namespace AMDiS {
45 46

  using namespace std;
Thomas Witkowski's avatar
Thomas Witkowski committed
47 48 49 50 51 52


  struct BoundaryDofInfo
  {
    map<GeoIndex, int> nGeoDofs;
  };
53
  
Thomas Witkowski's avatar
Thomas Witkowski committed
54

55
  class MeshDistributor
56
  {
57
  protected:
Thomas Witkowski's avatar
Thomas Witkowski committed
58
    /// Defines a mapping type from DOFs to rank numbers.
59
    typedef map<const DegreeOfFreedom*, int> DofToRank;
Thomas Witkowski's avatar
Thomas Witkowski committed
60 61

    /// Defines a mapping type from DOFs to a set of rank numbers.
62
    typedef map<const DegreeOfFreedom*, std::set<int> > DofToPartitions;
Thomas Witkowski's avatar
Thomas Witkowski committed
63 64

    /// Defines a mapping type from rank numbers to sets of DOFs.
65
    typedef map<int, DofContainer> RankToDofContainer;
Thomas Witkowski's avatar
Thomas Witkowski committed
66 67

    /// Defines a mapping type from DOF indices to DOF indices.
68
    typedef map<DegreeOfFreedom, DegreeOfFreedom> DofMapping;
Thomas Witkowski's avatar
Thomas Witkowski committed
69

70
    /// Defines a mapping type from DOFs to boolean values.
71
    typedef map<const DegreeOfFreedom*, bool> DofToBool;
72

Thomas Witkowski's avatar
Thomas Witkowski committed
73
    /// Defines a mapping type from DOF indices to boolean values.
74
    typedef map<DegreeOfFreedom, bool> DofIndexToBool;
Thomas Witkowski's avatar
Thomas Witkowski committed
75

Thomas Witkowski's avatar
Thomas Witkowski committed
76 77 78
    /// Forward type (it maps rank numbers to the interior boundary objects).
    typedef InteriorBoundary::RankToBoundMap RankToBoundMap;

79
    typedef map<const DegreeOfFreedom*, DegreeOfFreedom> DofIndexMap;
Thomas Witkowski's avatar
Thomas Witkowski committed
80

81
    /// Mapps a boundar type, i.e., a boundary identifier index, to a periodic 
82
    /// DOF mapping.
83 84 85
    typedef map<BoundaryType, DofMapping> PeriodicDofMap;

    typedef vector<MeshStructure> MeshCodeVec;
86

87
  public:
88
    MeshDistributor();
89 90
		          
    virtual ~MeshDistributor() {}
91

92
    void initParallelization();
93

94
    void exitParallelization();
95 96

    void addProblemStat(ProblemVec *probVec);
97

98 99 100 101 102 103 104
    /// Adds a DOFVector to the set of \ref interchangeVecs. Thus, this vector will
    /// be automatically interchanged between ranks when mesh is repartitioned.
    void addInterchangeVector(DOFVector<double> *vec)
    {
      interchangeVectors.push_back(vec);
    }

105 106 107 108 109 110 111
    /// Adds all DOFVectors of a SystemVector to \ref interchangeVecs.
    void addInterchangeVector(SystemVector *vec)
    {
      for (int i = 0; i < vec->getSize(); i++)
	interchangeVectors.push_back(vec->getDOFVector(i));
    }
    
112 113 114 115
    /** \brief
     * This function checks if the mesh has changed on at least on rank. In this case,
     * the interior boundaries are adapted on all ranks such that they fit together on
     * all ranks. Furthermore the function \ref updateLocalGlobalNumbering() is called
116
     * to update the DOF numberings and mappings on all rank due to the new mesh
117
     * structure.
118 119 120 121 122
     *
     * \param[in]  tryRepartition   If this parameter is true, repartitioning may be
     *                              done. This depends on several other parameters. If
     *                              the parameter is false, the mesh is only checked
     *                              and adapted but never repartitioned.
123
     */
124
    void checkMeshChange(bool tryRepartition = true);
125

126 127 128 129 130 131 132
    /** \brief
     * Test, if the mesh consists of macro elements only. The mesh partitioning of
     * the parallelization works for macro meshes only and would fail, if the mesh
     * is already refined in some way. Therefore, this function will exit the program
     * if it finds a non macro element in the mesh.
     */
    void testForMacroMesh();
133 134

    /// Set for each element on the partitioning level the number of leaf elements.
135
    void setInitialElementWeights();
136

137
    inline virtual string getName() 
138 139 140
    { 
      return name; 
    }
141

Thomas Witkowski's avatar
Thomas Witkowski committed
142 143 144 145 146
    inline Mesh* getMesh()
    {
      return mesh;
    }

147 148 149 150 151
    /// Returns \ref feSpace.
    inline const FiniteElemSpace* getFeSpace()
    {
      return feSpace;
    }
152 153 154
    
    /// Returns \ref nRankDOFs, the number of DOFs in the rank mesh.
    inline int getNumberRankDofs() 
155
    {
156
      return nRankDofs;
157
    }
158

159
    /// Returns \ref nOverallDofs, the global number of DOFs.
160
    inline int getNumberOverallDofs()
161
    {
162
      return nOverallDofs;
163
    }
164

Thomas Witkowski's avatar
Thomas Witkowski committed
165 166 167 168 169
    inline DofMapping& getMapLocalGlobalDofs()
    {
      return mapLocalGlobalDofs;
    }

170
    /// Maps a local DOF to its global index.
171
    inline DegreeOfFreedom mapLocalToGlobal(DegreeOfFreedom dof)
172
    {
173
      return mapLocalGlobalDofs[dof];
174
    }
175

176 177
    DegreeOfFreedom mapGlobalToLocal(DegreeOfFreedom dof);

178
    /// Maps a local DOF to its local index.
179 180 181 182 183
    inline DegreeOfFreedom mapLocalToDofIndex(DegreeOfFreedom dof)
    {
      return mapLocalDofIndex[dof];
    }

Thomas Witkowski's avatar
Thomas Witkowski committed
184 185 186 187 188 189
    /// Returns the periodic mapping for all boundary DOFs in rank.
    inline PeriodicDofMap& getPeriodicMapping()
    {
      return periodicDof;
    }

190
    /// Returns for a global dof index its periodic mapping for a given boundary type.
191
    inline int getPeriodicMapping(int globalDofIndex, BoundaryType type)
192
    {
Thomas Witkowski's avatar
Thomas Witkowski committed
193 194
      FUNCNAME("MeshDistributor::getPeriodicMapping()");

195
      TEST_EXIT_DBG(periodicDof[type].count(globalDofIndex) == 1)
Thomas Witkowski's avatar
Thomas Witkowski committed
196 197
	("There is no periodic association for global DOF %d for boundary type %d!\n",
	 globalDofIndex, type);
198 199 200 201

      return periodicDof[type][globalDofIndex];
    }

202 203 204
    /// For a given global DOF index, this function returns the set of periodic
    /// associations, i.e., the boundary types the DOF is associated to, for this DOF.
    inline std::set<BoundaryType>& getPerDofAssociations(int globalDofIndex)
205
    {      
206 207 208
      TEST_EXIT_DBG(periodicDofAssociations.count(globalDofIndex)) 
 	("Should not happen!\n"); 

209
      return periodicDofAssociations[globalDofIndex];
210
    }
211

212
    /// Returns true, if the DOF (global index) is a periodic DOF.
213
    inline bool isPeriodicDof(int globalDofIndex)
214
    {
215 216
      return (periodicDofAssociations.count(globalDofIndex) > 0 &&
	       periodicDofAssociations[globalDofIndex].size() > 0);
217 218
    }

219 220 221
    /// Returns true, if the DOF (global index) is a periodic DOF for the given
    /// boundary type.
    inline bool isPeriodicDof(int globalDofIndex, BoundaryType type)
222 223
    {
      return (periodicDof[type].count(globalDofIndex) > 0);
224 225
    }

226 227
    /// Return true, if the given DOF is owned by the rank. If false, the DOF is in
    /// rank's partition, but is owned by some other rank.
228 229
    inline bool getIsRankDof(DegreeOfFreedom dof)
    {
230 231 232 233
      if (isRankDof.count(dof))
	return isRankDof[dof];

      return false;
234
    }
235

236 237 238 239 240
    inline DofIndexToBool& getIsRankDof()
    {
      return isRankDof;
    }

241
    inline long getLastMeshChangeIndex()
242
    {
243
      return lastMeshChangeIndex;
244
    }
245

246 247 248 249
    inline int getRstart()
    {
      return rstart;
    }
250

251
    inline int getMpiRank()
252
    {
253
      return mpiRank;
254
    }
255

Thomas Witkowski's avatar
Thomas Witkowski committed
256 257 258 259 260
    inline int getMpiSize()
    {
      return mpiSize;
    }

261 262 263
    inline MPI::Intracomm& getMpiComm()
    {
      return mpiComm;
264 265
    }

266
    inline RankToDofContainer& getSendDofs()
267
    {
268
      return sendDofs;
269 270
    }

271
    inline RankToDofContainer& getRecvDofs()
272
    {
273
      return recvDofs;
274
    }
275

276
    // Writes all data of this object to an output stream.
277
    void serialize(ostream &out);
278

279
    // Reads the object data from an input stream.
280
    void deserialize(istream &in);
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300

    /** \brief
     * This function must be used if the values of a DOFVector must be synchronised
     * over all ranks. That means, that each rank sends the values of the DOFs, which
     * are owned by the rank and lie on an interior bounday, to all other ranks also
     * having these DOFs.
     *
     * This function must be used, for example, after the lineary system is solved, or
     * after the DOFVector is set by some user defined functions, e.g., initial
     * solution functions.
     */    
    void synchVector(DOFVector<double> &vec);

    /** \brief
     * Works in the same way as the function above defined for DOFVectors. Due to
     * performance, this function does not call \ref synchVector for each DOFVector,
     * but instead sends all values of all DOFVectors all at once.
     */
    void synchVector(SystemVector &vec);

301 302
    void check3dValidMesh();

Thomas Witkowski's avatar
Thomas Witkowski committed
303 304 305 306 307
    void setBoundaryDofRequirement(Flag flag)
    {
      createBoundaryDofFlag = flag;
    }

308
  protected:
309
    /** \brief
Thomas Witkowski's avatar
Thomas Witkowski committed
310
     * Determines the interior boundaries, i.e. boundaries between ranks, and stores
311 312
     * all information about them in \ref interiorBoundary.
     */
313
    void createInteriorBoundaryInfo();
314

Thomas Witkowski's avatar
Thomas Witkowski committed
315 316 317 318 319
    void updateInteriorBoundaryInfo();

    void createMeshElementData();

    void createBoundaryData();
Thomas Witkowski's avatar
Thomas Witkowski committed
320

Thomas Witkowski's avatar
Thomas Witkowski committed
321 322
    void createBoundaryDofs();

323 324 325
    /// Removes all macro elements from the mesh that are not part of ranks partition.
    void removeMacroElements();

326
    /// Updates the local and global DOF numbering after the mesh has been changed.
327
    void updateLocalGlobalNumbering();
328

329 330 331 332 333
    /** \brief
     * Creates to all dofs in rank's partition that are on a periodic boundary the
     * mapping from dof index to the other periodic dof indices. This information
     * is stored in \ref periodicDof.
     */
334 335
    void createPeriodicMap();

336 337
    void createMacroElementInfo();

338 339
    void updateMacroElementInfo();

340 341 342 343 344 345 346 347 348
    /** \brief
     * Checks for all given interior boundaries if the elements fit together on both
     * sides of the boundaries. If this is not the case, the mesh is adapted. Because
     * refinement of a certain element may forces the refinement of other elements,
     * it is not guaranteed that all rank's meshes fit together after this function
     * terminates. Hence, it must be called until a stable mesh refinement is reached.
     *
     * \param[in] allBound   Defines a map from rank to interior boundaries which 
     *                       should be checked.
349 350 351 352
     *
     * \return    If the mesh has  been changed by this function, it returns true. 
     *            Otherwise, it returns false, i.e., the given interior boundaries 
     *            fit together on both sides.
353 354
     */
    bool checkAndAdaptBoundary(RankToBoundMap &allBound);
355 356 357 358 359 360 361 362
  
    /** \brief
     * Checks if is required to repartition the mesh. If this is the case, a new
     * partition will be created and the mesh will be redistributed between the
     * ranks.
     */
    void repartitionMesh();

363 364 365 366
    /// Sets \ref isRankDof to all matrices and rhs vectors in a given 
    /// stationary problem.
    void setRankDofs(ProblemVec *probVec);

367 368 369
    /// Sets \ref isRankDof to all matrices and rhs vectors in all stationary problems.
    void setRankDofs();

370 371 372 373
    /// Removes all periodic boundary condition information from all matrices and
    /// vectors of all stationary problems and from the mesh itself.
    void removePeriodicBoundaryConditions();

Thomas Witkowski's avatar
Thomas Witkowski committed
374
    // Removes all periodic boundaries from a given boundary map.
375
    void removePeriodicBoundaryConditions(BoundaryIndexMap& boundaryMap);
Thomas Witkowski's avatar
Thomas Witkowski committed
376

377
    /// Writes a vector of dof pointers to an output stream.
378
    void serialize(ostream &out, DofContainer &data);
379 380

    /// Reads a vector of dof pointers from an input stream.
381 382
    void deserialize(istream &in, DofContainer &data,
		     map<int, const DegreeOfFreedom*> &dofMap);
383 384

    /// Writes a \ref RankToDofContainer to an output stream.
385
    void serialize(ostream &out, RankToDofContainer &data);
386 387

    /// Reads a \ref RankToDofContainer from an input stream.
388 389
    void deserialize(istream &in, RankToDofContainer &data,
		     map<int, const DegreeOfFreedom*> &dofMap);
390

391
    /// Writes a periodic dof mapping to an output stream.
392
    void serialize(ostream &out, PeriodicDofMap &data);
393

394
    void serialize(ostream &out, map<int, std::set<int> >& data);
395

396
    /// Reads a periodic dof mapping from an input stream.
397
    void deserialize(istream &in, PeriodicDofMap &data);
398

399
    void deserialize(istream &in, map<int, std::set<int> >& data);
400

401 402
    /// Writes a mapping from dof pointers to some values to an output stream.
    template<typename T>
403
    void serialize(ostream &out, map<const DegreeOfFreedom*, T> &data)
404
    {
405 406
      FUNCNAME("ParallelDomainBase::serialize()");

407
      int mapSize = data.size();
408
      SerUtil::serialize(out, mapSize);
409
      for (typename map<const DegreeOfFreedom*, T>::iterator it = data.begin();
410 411 412
	   it != data.end(); ++it) {
	int v1 = (*(it->first));
	T v2 = it->second;
413 414
	SerUtil::serialize(out, v1);
	SerUtil::serialize(out, v2);
415 416 417 418 419
      }
    }

    /// Reads a mapping from dof pointer to some values from an input stream.
    template<typename T>
420 421
    void deserialize(istream &in, map<const DegreeOfFreedom*, T> &data,
		     map<int, const DegreeOfFreedom*> &dofMap)
422
    {
423 424
      FUNCNAME("ParallelDomainBase::deserialize()");

425
      int mapSize = 0;
426
      SerUtil::deserialize(in, mapSize);
427 428 429
      for (int i = 0; i < mapSize; i++) {
	int v1 = 0;
	T v2;
430 431
	SerUtil::deserialize(in, v1);
	SerUtil::deserialize(in, v2);
432 433 434

	TEST_EXIT_DBG(dofMap.count(v1) != 0)("Cannot find DOF %d in map!\n", v1);

435 436 437
	data[dofMap[v1]] = v2;
      }
    }
438

439
  protected:
440
    /// List of all stationary problems that are managed by this mesh distributor.
441
    vector<ProblemVec*> probStat;
Thomas Witkowski's avatar
Thomas Witkowski committed
442

443 444 445
    /// If true, the mesh distributor is already initialized;
    bool initialized;

446 447 448 449 450 451 452 453 454 455 456 457 458 459
    /// The rank of the current process.
    int mpiRank;

    /// Overall number of processes.
    int mpiSize;

    /** \brief
     * MPI communicator collected all processes, which should
     * be used for calculation. The Debug procces is not included
     * in this communicator.
     */
    MPI::Intracomm mpiComm;

    /// Name of the problem (as used in the init files)
460
    string name;
461

462 463 464
    /// Finite element space of the problem.
    FiniteElemSpace *feSpace;

465 466 467
    /// Mesh of the problem.
    Mesh *mesh;

468 469 470 471 472 473 474
    /** \brief
     * A refinement manager that should be used on the mesh. It is used to refine
     * elements at interior boundaries in order to fit together with elements on the
     * other side of the interior boundary.
     */    
    RefinementManager *refineManager;

475 476 477
    /// Info level.
    int info;

478 479
    /// Pointer to a mesh partitioner that is used to partition the mesh to the ranks.
    MeshPartitioner *partitioner;
480 481

    /// Weights for the elements, i.e., the number of leaf elements within this element.
482
    map<int, double> elemWeights;
483 484

    /** \brief
485 486
     * Stores to every macro element index the number of the rank that owns this
     * macro element.
487
     */
488
    map<int, int> partitionMap;
489

490
    /// Number of DOFs in the rank mesh.
491
    int nRankDofs;
Thomas Witkowski's avatar
Thomas Witkowski committed
492

493
    /// Number of DOFs in the whole domain.
494 495
    int nOverallDofs;

Thomas Witkowski's avatar
Thomas Witkowski committed
496 497 498 499
    // Data structure to store all sub-objects of all elements of the macro mesh.
    ElementObjects elObjects;

    // Maps to each macro element index a pointer to the corresponding element.
500
    map<int, Element*> macroElIndexMap;
Thomas Witkowski's avatar
Thomas Witkowski committed
501 502
    
    // Maps to each macro element index the type of this element.
503
    map<int, int> macroElIndexTypeMap;
Thomas Witkowski's avatar
Thomas Witkowski committed
504

Thomas Witkowski's avatar
Thomas Witkowski committed
505
    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
506 507 508 509 510 511 512 513 514 515 516 517
     * Defines the interior boundaries of the domain that result from partitioning
     * the whole mesh. Contains only the boundaries, which are owned by the rank, i.e.,
     * the object gives for every neighbour rank i the boundaries this rank owns and 
     * shares with rank i.
     */
    InteriorBoundary myIntBoundary;
    
    /** \brief
     * Defines the interior boundaries of the domain that result from partitioning
     * the whole mesh. Contains only the boundaries, which are not owned by the rank,
     * i.e., the object gives for every neighbour rank i the boundaries that are
     * owned by rank i and are shared with this rank.
Thomas Witkowski's avatar
Thomas Witkowski committed
518
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
519
    InteriorBoundary otherIntBoundary;
Thomas Witkowski's avatar
Thomas Witkowski committed
520

521
    /** \brief
522 523
     * Defines the periodic boundaries with other ranks. Periodic boundaries have
     * no owner, as it is the case of interior boundaries.
524 525 526
     */
    InteriorBoundary periodicBoundary;

527
    /** \brief
528 529
     * This map contains for each rank the list of DOFs the current rank must send
     * to exchange solution DOFs at the interior boundaries.
530
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
531
    RankToDofContainer sendDofs;
532 533

    /** \brief
534
     * This map contains on each rank the list of DOFs from which the current rank 
535 536
     * will receive DOF values (i.e., this are all DOFs at an interior boundary). The
     * DOF indices are given in rank's local numbering.
537
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
538
    RankToDofContainer recvDofs;
539 540

    /// Maps local to global dof indices.
541
    DofMapping mapLocalGlobalDofs;
542

Thomas Witkowski's avatar
Thomas Witkowski committed
543
    /// Maps local dof indices to real dof indices.
544
    DofMapping mapLocalDofIndex;  
545 546 547 548 549 550

    /** \brief
     * Maps all DOFs in ranks partition to a bool value. If it is true, the DOF is
     * owned by the rank. Otherwise, its an interior boundary DOF that is owned by
     * another rank.
     */
551 552
    DofIndexToBool isRankDof;

553
    /** \brief
554 555 556 557
     * If periodic boundaries are used, this map stores, for each periodic boundary
     * type, for all DOFs in rank's partition (that are on periodic boundaries), the 
     * corresponding mapped periodic DOFs. The mapping is defined by using global 
     * dof indices.
558
     */
559
    PeriodicDofMap periodicDof;
560 561 562 563 564
    
    /** \brief
     * If periodic boundaries are used, this map stores to each periodic DOF in rank's
     * partition the set of periodic boundaries the DOF is associated to. In 2D, most
     * DOFs are only on one periodic boundary. Only, e.g., in a box with all boundaries
565
     * being periodic, the four corners are associated by two different boundaries.
566
     */
567
    map<int, std::set<BoundaryType> > periodicDofAssociations;
568

569 570 571 572 573
    
    /// This set of values must be interchanged between ranks when the mesh is 
    /// repartitioned.
    vector<DOFVector<double>*> interchangeVectors;
		        
574
    /// Is the index of the first row of the linear system, which is owned by the rank.
Thomas Witkowski's avatar
n  
Thomas Witkowski committed
575
    int rstart;
576

577 578 579 580 581 582 583
    /** \brief
     * If the problem definition has been read from a serialization file, this 
     * variable is true, otherwise it is false. This variable is used to stop the
     * initialization function, if the problem definition has already been read from
     * a serialization file.
     */
    bool deserialized;
584

585 586 587
    /// Denotes whether there exists a filewriter for this object.
    bool writeSerializationFile;

588 589 590
    /// If true, it is possible to repartition the mesh during computations.
    bool repartitioningAllowed;

591
    /// Stores the number of mesh changes that must lie in between to repartitionings.
592 593
    int repartitionIthChange;

594 595
    /// Counts the number of mesh changes after the last mesh repartitioning was done.
    int nMeshChangesAfterLastRepartitioning;
596

597 598 599
    /// Countes the number of mesh repartitions that were done. Till now, this 
    /// variable is used only for debug outputs.
    int repartitioningCounter;
600

601
    /// Directory name where all debug output files should be written to.
602
    string debugOutputDir;
603

604 605 606 607 608
    /** \brief
     * Stores the mesh change index. This is used to recognize changes in the mesh 
     * structure (e.g. through refinement or coarsening managers).
     */
    long lastMeshChangeIndex;
609

610
    map<int, vector<int> > macroElementNeighbours;
611

612 613
    /// Store all macro elements of the overall mesh, i.e., before the macro mesh is
    /// redistributed for the first time.
614
    vector<MacroElement*> allMacroElements;
615

Thomas Witkowski's avatar
Thomas Witkowski committed
616 617 618 619 620 621 622 623 624
    Flag createBoundaryDofFlag;

    BoundaryDofInfo boundaryDofInfo;
  public:
    ///
    static const Flag BOUNDARY_SUBOBJ_SORTED;

    static const Flag BOUNDARY_EDGE_SCHUR;

625
    friend class ParallelDebug;
626 627 628
  };
}

629
#endif // AMDIS_MESHDISTRIBUTOR_H