FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
firefront/src/ParallelData.cpp at master · OroraTech/firefront · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
OroraTech
/
firefront
Public
forked from
forefireAPI/forefire
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
firefront
/
src
/
ParallelData.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (37 loc) · 1.5 KB
Breadcrumbs
firefront
/
src
/
ParallelData.cpp
Copy path
File metadata and controls
43 lines (37 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
*
* @file ParallelData.cpp
* @brief TODO: add a brief description.
* @copyright Copyright (C) 2025 ForeFire, Fire Team, SPE, CNRS/Universita di Corsica.
* @license This program is free software; See LICENSE file for details. (See LICENSE file).
* @author Jean‑Baptiste Filippi — 2025
*/
#
include
"
ParallelData.h
"
namespace
libforefire
{
ParallelData::ParallelData
() {
FireNodesInCellPosX =
0
;
FireNodesInCellPosY =
0
;
FireNodesInCellVelX =
0
;
FireNodesInCellVelY =
0
;
FireNodesInCellTime =
0
;
FireNodesInCellId =
0
;
}
ParallelData::~ParallelData
() {
//
nothing to do
}
void
ParallelData::setSize
(
const
size_t
& nx,
const
size_t
& ny
,
const
size_t
& nz,
const
double
& initval){
if
( FireNodesInCellPosX )
delete
FireNodesInCellPosX;
FireNodesInCellPosX =
new
FFArray<
double
>(
"
FireNodesInCellPosX
"
,
0
., nx, ny, nz);
if
( FireNodesInCellPosY )
delete
FireNodesInCellPosY;
FireNodesInCellPosY =
new
FFArray<
double
>(
"
FireNodesInCellPosY
"
,
0
., nx, ny, nz);
if
( FireNodesInCellVelX )
delete
FireNodesInCellVelX;
FireNodesInCellVelX =
new
FFArray<
double
>(
"
FireNodesInCellVelX
"
,
0
., nx, ny, nz);
if
( FireNodesInCellVelY )
delete
FireNodesInCellVelY;
FireNodesInCellVelY =
new
FFArray<
double
>(
"
FireNodesInCellVelY
"
,
0
., nx, ny, nz);
if
( FireNodesInCellTime )
delete
FireNodesInCellTime;
FireNodesInCellTime =
new
FFArray<
double
>(
"
FireNodesInCellTime
"
, initval, nx, ny, nz);
if
( FireNodesInCellId )
delete
FireNodesInCellId;
FireNodesInCellId =
new
FFArray<
double
>(
"
FireNodesInCellId
"
,
0
., nx, ny, nz);
}
}
Back
|
FazBrowse Home
|
New Git URL