Loading [MathJax]/extensions/tex2jax.js
MAIA bb96820c
Multiphysics at AIA
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
geometryiobase.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef GEOMETRYIOBASE_H
8#define GEOMETRYIOBASE_H
9
10#include "COMM/mpioverride.h"
12
14 public:
16 virtual MInt segmentCount() = 0;
17 virtual void writeProperties(const MChar* /*fileName*/, geometryPropertyMap*){};
18 GeometryIOBase(const MPI_Comm comm) {
19 MPI_Comm_rank(comm, &m_domainId);
20 MPI_Comm_size(comm, &m_noDomains);
21 };
22 virtual ~GeometryIOBase(){};
23
24 MInt domainId() { return m_domainId; };
25 MInt noDomains() { return m_noDomains; };
26
27 private:
30};
31
32#endif
virtual MInt segmentCount()=0
virtual void writeProperties(const MChar *, geometryPropertyMap *)
GeometryIOBase(const MPI_Comm comm)
virtual ~GeometryIOBase()
virtual geometryAssembly * readPropertyFile(MString fileName)=0
std::multimap< MString, GeometryProperty * > geometryPropertyMap
int32_t MInt
Definition: maiatypes.h:62
std::basic_string< char > MString
Definition: maiatypes.h:55
char MChar
Definition: maiatypes.h:56