VM2D
1.12
Vortex methods for 2D flows simulation
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PairInt.cpp
Go to the documentation of this file.
1
/*--------------------------------*- VMlib -*----------------*---------------*\
2
| ## ## ## ## ## ## ## | | Version 1.12 |
3
| ## ## ### ### ## ## | VMlib: VM2D/VM3D Library | 2024/01/14 |
4
| ## ## ## # ## ## ## #### | Open Source Code *----------------*
5
| #### ## ## ## ## ## ## | https://www.github.com/vortexmethods/VM2D |
6
| ## ## ## #### ### #### | https://www.github.com/vortexmethods/VM3D |
7
| |
8
| Copyright (C) 2017-2024 Ilia Marchevsky |
9
*-----------------------------------------------------------------------------*
10
| File name: PairInt.cpp |
11
| Info: Source code of VMlib |
12
| |
13
| This file is part of VMlib. |
14
| VMLib is free software: you can redistribute it and/or modify it |
15
| under the terms of the GNU General Public License as published by |
16
| the Free Software Foundation, either version 3 of the License, or |
17
| (at your option) any later version. |
18
| |
19
| VMlib is distributed in the hope that it will be useful, but WITHOUT |
20
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
21
| FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
22
| for more details. |
23
| |
24
| You should have received a copy of the GNU General Public License |
25
| along with VMlib. If not, see <http://www.gnu.org/licenses/>. |
26
\*---------------------------------------------------------------------------*/
27
28
37
#include "
PairInt.h
"
38
39
using namespace
VMlib
;
40
41
//MPI_Datatype PairInt::mpiPairInt;
42
43
44
//Конструктор и приведение типа из numvector<int, 2>
45
PairInt::PairInt
(
const
numvector<int, 2>
& _r)
46
{
47
data
[0] = _r[0];
48
data
[1] = _r[1];
49
}
//PairInt(...)
50
51
52
//Конструктор копирования
53
PairInt::PairInt
(
const
PairInt
& _r)
54
{
55
data
[0] = _r[0];
56
data
[1] = _r[1];
57
}
//PairInt(...)
58
59
60
//Конструктор инициализации списком
61
PairInt::PairInt
(
const
std::initializer_list<int>& z)
62
{
63
for
(
size_t
i = 0; i < 2; ++i)
64
data
[i] = *(z.begin() + i);
65
}
//PairInt(...)
66
67
68
// Cоздание MPI-описателя типа
69
//void PairInt::CreateMpiType()
70
//{
71
// int len[1] = { 2 };
72
// MPI_Aint pos[1] = { 0 };
73
// MPI_Datatype typ[1] = { MPI_INT };
74
//
75
// MPI_Type_create_struct(1, len, pos, typ, &mpiPairInt);
76
// MPI_Type_commit(&mpiPairInt);
77
//
78
//}//CreateMpiType()
VMlib::numvector< int, 2 >
VMlib::PairInt
Класс, опеделяющий пару целых чисел
Definition:
PairInt.h:68
VMlib::numvector< int, 2 >::data
int data[n]
Definition:
numvector.h:98
PairInt.h
Файл кода с описанием класса PairInt.
VMlib
Definition:
Mechanics2D.h:47
VMlib::PairInt::PairInt
PairInt()
Пустой конструктор
Definition:
PairInt.h:75
VMlib
PairInt
PairInt.cpp
Generated by
1.8.11