VM2D  1.12
Vortex methods for 2D flows simulation
Vortex2D.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: Vortex2D.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 <stddef.h>
38 
39 #include "Vortex2D.h"
40 
41 using namespace VMlib;
42 
43 //MPI_Datatype Vortex2D::mpiVortex2D;
44 size_t Vortex2D::offsPos = offsetof(Vortex2D, pos);
45 size_t Vortex2D::offsGam = offsetof(Vortex2D, gam);
46 
47 
48 //void Vortex2D::CreateMpiType()
49 //{
50 // int len[2] = { 2, 1 };
51 // MPI_Aint pos[2] = { offsetof(Vortex2D, pos), offsetof(Vortex2D, gam) };
52 // MPI_Datatype typ[2] = { MPI_DOUBLE, MPI_DOUBLE };
53 //
54 // MPI_Type_create_struct(2, len, pos, typ, &mpiVortex2D);
55 // MPI_Type_commit(&mpiVortex2D);
56 //
57 // offsPos = offsetof(Vortex2D, pos);
58 // offsGam = offsetof(Vortex2D, gam);
59 //}//CreateMpiType()
static size_t offsGam
Definition: Vortex2D.h:68
static size_t offsPos
Definition: Vortex2D.h:67
Класс, опеделяющий двумерный вихревой элемент
Definition: Vortex2D.h:51
Заголовочный файл с описанием класса Vortex2D.