Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
6c4c571b
Commit
6c4c571b
authored
3 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Reinstalling EIGEN
parent
86fecff3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.sh
+3
-0
3 additions, 0 deletions
build.sh
script/remove_old
+1
-0
1 addition, 0 deletions
script/remove_old
src/Amr/grid_dist_amr.hpp
+58
-0
58 additions, 0 deletions
src/Amr/grid_dist_amr.hpp
with
62 additions
and
0 deletions
build.sh
+
3
−
0
View file @
6c4c571b
...
...
@@ -27,6 +27,7 @@ if [ x"$hostname" == x"cifarm-centos-node.mpi-cbg.de" ]; then
./install_CMAKE_on_CI.sh
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/
export
PATH
=
"
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/CMAKE/bin:
$PATH
"
foward_options
=
"--with-cuda-on-backend=OpenMP"
rm
-rf
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/EIGEN
fi
if
[
x
"
$hostname
"
==
x
"cifarm-ubuntu-node"
]
;
then
...
...
@@ -35,6 +36,7 @@ if [ x"$hostname" == x"cifarm-ubuntu-node" ]; then
./install_MPI_mpich.sh
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/ 4
export
PATH
=
"/opt/bin:
$PATH
"
foward_options
=
"--with-cuda-on-backend=OpenMP"
rm
-rf
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/EIGEN
fi
if
[
x
"
$hostname
"
==
x
"cifarm-mac-node.mpi-cbg.de"
]
;
then
...
...
@@ -47,6 +49,7 @@ if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de" ]; then
# rm -rf $HOME/openfpm_dependencies/openfpm_pdata/$branch/PETSC
#./install_CMAKE_on_CI.sh $HOME/openfpm_dependencies/openfpm_pdata/$branch/
# export PATH="$HOME/openfpm_dependencies/openfpm_pdata/$branch/CMAKE/bin:$PATH"
rm
-rf
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
/EIGEN
fi
if
[
x
"
$hostname
"
==
x
"falcon1"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
script/remove_old
+
1
−
0
View file @
6c4c571b
...
...
@@ -136,6 +136,7 @@ function remove_old()
echo
-e
"
\0
33[1;34;5m SuiteSparse has been updated to version 5.10.1, the component will be updated automatically
\0
33[0m"
echo
-e
"
\0
33[1;34;5m -------------------------------------------------------------------------------------------
\0
33[0m"
sleep
5
rm
-rf
$1
/EIGEN
rm
-rf
$1
/SUITESPARSE
rm
-rf
$1
/PETSC
fi
...
...
This diff is collapsed.
Click to expand it.
src/Amr/grid_dist_amr.hpp
+
58
−
0
View file @
6c4c571b
...
...
@@ -977,6 +977,43 @@ public:
return
gd_array
.
get
(
v1
.
getLvl
()).
getGKey
(
v1
.
getKey
());
}
/*! \brief Get the position on the grid in global coordinates
*
* \param lvl level
* \param v1 point in the level
*
* \return the position in global coordinates
*
*/
grid_key_dx
<
dim
>
getGKey
(
int
lvl
,
const
grid_dist_key_dx
<
dim
>
&
v1
)
{
return
gd_array
.
get
(
lvl
).
getGKey
(
v1
);
}
/*! \brief Get the the position of the point
*
* \param v1 AMR point
*
* \return the position in global coordinates
*
*/
Point
<
dim
,
St
>
getPos
(
const
grid_dist_amr_key
<
dim
>
&
v1
)
{
return
gd_array
.
get
(
v1
.
getLvl
()).
getPos
(
v1
.
getKey
());
}
/*! \brief Get the the position of the point
*
* \param v1 AMR point
*
* \return the position in global coordinates
*
*/
Point
<
dim
,
St
>
getPos
(
int
lvl
,
const
grid_dist_key_dx
<
dim
>
&
v1
)
{
return
gd_array
.
get
(
lvl
).
getPos
(
v1
);
}
/*! \brief return the spacing for the grid in the level lvl
*
* \param lvl level
...
...
@@ -989,6 +1026,27 @@ public:
return
gd_array
.
get
(
lvl
).
getSpacing
();
}
/* \brief Check if a point exist
*
* \param v1 point to checl
*
*/
bool
existPoint
(
const
grid_dist_amr_key
<
dim
>
&
v1
)
{
return
gd_array
.
get
(
v1
.
getLvl
()).
existPoint
(
v1
.
getKey
());
}
/* \brief Check if a point exist
*
* \param v1 point to checl
*
*/
bool
existPoint
(
int
lvl
,
const
grid_dist_key_dx
<
dim
>
&
v1
)
{
return
gd_array
.
get
(
lvl
).
existPoint
(
v1
);
}
/*! \brief Write on vtk file
*
* \param output filename output
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment