Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
numa
Commits
fa7adb65
Commit
fa7adb65
authored
Jun 10, 2021
by
Jose Manuel Morgado Chávez
Browse files
Modify RT to work with finner meshes: more than eight neighbors for a vertex
parent
578fba63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/NumA/RadonTransform/RadonTransform.cpp
View file @
fa7adb65
...
...
@@ -64,7 +64,7 @@ void RadonTransform::init()
// Set elements
ifstream
elem
;
elem
.
open
(
"/usr/local/share/data/mesh/mesh
1
/elements.dat"
);
// TODO: TURN TO A RELATIVE PATH.
elem
.
open
(
"/usr/local/share/data/mesh/mesh
3
/elements.dat"
);
// TODO: TURN TO A RELATIVE PATH.
if
(
elem
)
{
...
...
@@ -99,7 +99,7 @@ void RadonTransform::init()
// Set vertices
ifstream
vert
;
vert
.
open
(
"/usr/local/share/data/mesh/mesh
1
/vertices.dat"
);
// TODO: CONVERT TO A RELATIVE PATH.
vert
.
open
(
"/usr/local/share/data/mesh/mesh
3
/vertices.dat"
);
// TODO: CONVERT TO A RELATIVE PATH.
if
(
vert
)
{
...
...
@@ -124,20 +124,20 @@ void RadonTransform::init()
}
else
{
throw
runtime_error
(
"Missing input file 'vertices.dat'. It should be located in 'partons_root_directory/data/mesh/mesh
1
'"
);
throw
runtime_error
(
"Missing input file 'vertices.dat'. It should be located in 'partons_root_directory/data/mesh/mesh
3
'"
);
}
vert
.
close
();
// Set vertices' neighbors.
ifstream
vneighbors
;
vneighbors
.
open
(
"/usr/local/share/data/mesh/mesh
1
/neighborsv.dat"
);
// TODO: CONVERT TO A RELATIVE PATH.
vneighbors
.
open
(
"/usr/local/share/data/mesh/mesh
3
/neighborsv.dat"
);
// TODO: CONVERT TO A RELATIVE PATH.
if
(
vneighbors
)
{
string
linen
;
int
n1
,
n2
,
n3
,
n4
,
n5
,
n6
,
n7
,
n8
,
n9
;
int
n1
,
n2
,
n3
,
n4
,
n5
,
n6
,
n7
,
n8
,
n9
,
n10
;
std
::
vector
<
int
>
vn
;
...
...
@@ -176,7 +176,17 @@ void RadonTransform::init()
if
(
ss
>>
n8
)
{
vn
.
push_back
(
n8
);
vn
.
push_back
(
n8
);
if
(
ss
>>
n9
)
{
vn
.
push_back
(
n9
);
if
(
ss
>>
n10
)
{
vn
.
push_back
(
n10
);
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment