Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
89c9a88c
Commit
89c9a88c
authored
Mar 8, 2024
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Rename remaining i_mesh (interface) variables to mesh_v (variant)
parent
2f8ace4a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!183
Release v0.5.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/scheme/AcousticSolver.cpp
+9
-9
9 additions, 9 deletions
src/scheme/AcousticSolver.cpp
src/scheme/HyperelasticSolver.cpp
+9
-9
9 additions, 9 deletions
src/scheme/HyperelasticSolver.cpp
with
18 additions
and
18 deletions
src/scheme/AcousticSolver.cpp
+
9
−
9
View file @
89c9a88c
...
@@ -371,8 +371,8 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
...
@@ -371,8 +371,8 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
p_v
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
p_v
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
{
{
std
::
shared_ptr
i_
mesh
=
getCommonMesh
({
rho_v
,
c_v
,
u_v
,
p_v
});
std
::
shared_ptr
mesh
_v
=
getCommonMesh
({
rho_v
,
c_v
,
u_v
,
p_v
});
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -380,7 +380,7 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
...
@@ -380,7 +380,7 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
throw
NormalError
(
"acoustic solver expects P0 functions"
);
throw
NormalError
(
"acoustic solver expects P0 functions"
);
}
}
const
MeshType
&
mesh
=
*
i_
mesh
->
get
<
MeshType
>
();
const
MeshType
&
mesh
=
*
mesh
_v
->
get
<
MeshType
>
();
const
DiscreteScalarFunction
&
rho
=
rho_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteScalarFunction
&
rho
=
rho_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteScalarFunction
&
c
=
c_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteScalarFunction
&
c
=
c_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteVectorFunction
&
u
=
u_v
->
get
<
DiscreteVectorFunction
>
();
const
DiscreteVectorFunction
&
u
=
u_v
->
get
<
DiscreteVectorFunction
>
();
...
@@ -474,8 +474,8 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
...
@@ -474,8 +474,8 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
const
std
::
shared_ptr
<
const
ItemValueVariant
>&
ur
,
const
std
::
shared_ptr
<
const
ItemValueVariant
>&
ur
,
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>&
Fjr
)
const
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>&
Fjr
)
const
{
{
std
::
shared_ptr
i_
mesh
=
getCommonMesh
({
rho_v
,
u_v
,
E_v
});
std
::
shared_ptr
mesh
_v
=
getCommonMesh
({
rho_v
,
u_v
,
E_v
});
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -484,7 +484,7 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
...
@@ -484,7 +484,7 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
}
}
return
this
->
apply_fluxes
(
dt
,
//
return
this
->
apply_fluxes
(
dt
,
//
*
i_
mesh
->
get
<
MeshType
>
(),
//
*
mesh
_v
->
get
<
MeshType
>
(),
//
rho_v
->
get
<
DiscreteScalarFunction
>
(),
//
rho_v
->
get
<
DiscreteScalarFunction
>
(),
//
u_v
->
get
<
DiscreteVectorFunction
>
(),
//
u_v
->
get
<
DiscreteVectorFunction
>
(),
//
E_v
->
get
<
DiscreteScalarFunction
>
(),
//
E_v
->
get
<
DiscreteScalarFunction
>
(),
//
...
@@ -863,9 +863,9 @@ class AcousticSolverHandler::AcousticSolver<MeshType>::SymmetryBoundaryCondition
...
@@ -863,9 +863,9 @@ class AcousticSolverHandler::AcousticSolver<MeshType>::SymmetryBoundaryCondition
~
SymmetryBoundaryCondition
()
=
default
;
~
SymmetryBoundaryCondition
()
=
default
;
};
};
AcousticSolverHandler
::
AcousticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
i_
mesh
)
AcousticSolverHandler
::
AcousticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
mesh
_v
)
{
{
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -878,5 +878,5 @@ AcousticSolverHandler::AcousticSolverHandler(const std::shared_ptr<const MeshVar
...
@@ -878,5 +878,5 @@ AcousticSolverHandler::AcousticSolverHandler(const std::shared_ptr<const MeshVar
throw
NormalError
(
"unexpected mesh type"
);
throw
NormalError
(
"unexpected mesh type"
);
}
}
},
},
i_
mesh
->
variant
());
mesh
_v
->
variant
());
}
}
This diff is collapsed.
Click to expand it.
src/scheme/HyperelasticSolver.cpp
+
9
−
9
View file @
89c9a88c
...
@@ -388,8 +388,8 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
...
@@ -388,8 +388,8 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
sigma_v
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
sigma_v
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
{
{
std
::
shared_ptr
i_
mesh
=
getCommonMesh
({
rho_v
,
aL_v
,
aT_v
,
u_v
,
sigma_v
});
std
::
shared_ptr
mesh
_v
=
getCommonMesh
({
rho_v
,
aL_v
,
aT_v
,
u_v
,
sigma_v
});
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -397,7 +397,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
...
@@ -397,7 +397,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
throw
NormalError
(
"hyperelastic solver expects P0 functions"
);
throw
NormalError
(
"hyperelastic solver expects P0 functions"
);
}
}
const
MeshType
&
mesh
=
*
i_
mesh
->
get
<
MeshType
>
();
const
MeshType
&
mesh
=
*
mesh
_v
->
get
<
MeshType
>
();
const
DiscreteScalarFunction
&
rho
=
rho_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteScalarFunction
&
rho
=
rho_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteVectorFunction
&
u
=
u_v
->
get
<
DiscreteVectorFunction
>
();
const
DiscreteVectorFunction
&
u
=
u_v
->
get
<
DiscreteVectorFunction
>
();
const
DiscreteScalarFunction
&
aL
=
aL_v
->
get
<
DiscreteScalarFunction
>
();
const
DiscreteScalarFunction
&
aL
=
aL_v
->
get
<
DiscreteScalarFunction
>
();
...
@@ -505,8 +505,8 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
...
@@ -505,8 +505,8 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
const
std
::
shared_ptr
<
const
ItemValueVariant
>&
ur
,
const
std
::
shared_ptr
<
const
ItemValueVariant
>&
ur
,
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>&
Fjr
)
const
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>&
Fjr
)
const
{
{
std
::
shared_ptr
i_
mesh
=
getCommonMesh
({
rho
,
u
,
E
});
std
::
shared_ptr
mesh
_v
=
getCommonMesh
({
rho
,
u
,
E
});
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -515,7 +515,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
...
@@ -515,7 +515,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
}
}
return
this
->
apply_fluxes
(
dt
,
//
return
this
->
apply_fluxes
(
dt
,
//
*
i_
mesh
->
get
<
MeshType
>
(),
//
*
mesh
_v
->
get
<
MeshType
>
(),
//
rho
->
get
<
DiscreteScalarFunction
>
(),
//
rho
->
get
<
DiscreteScalarFunction
>
(),
//
u
->
get
<
DiscreteVectorFunction
>
(),
//
u
->
get
<
DiscreteVectorFunction
>
(),
//
E
->
get
<
DiscreteScalarFunction
>
(),
//
E
->
get
<
DiscreteScalarFunction
>
(),
//
...
@@ -939,9 +939,9 @@ class HyperelasticSolverHandler::HyperelasticSolver<MeshType>::SymmetryBoundaryC
...
@@ -939,9 +939,9 @@ class HyperelasticSolverHandler::HyperelasticSolver<MeshType>::SymmetryBoundaryC
~
SymmetryBoundaryCondition
()
=
default
;
~
SymmetryBoundaryCondition
()
=
default
;
};
};
HyperelasticSolverHandler
::
HyperelasticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
i_
mesh
)
HyperelasticSolverHandler
::
HyperelasticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
mesh
_v
)
{
{
if
(
not
i_
mesh
)
{
if
(
not
mesh
_v
)
{
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
throw
NormalError
(
"discrete functions are not defined on the same mesh"
);
}
}
...
@@ -954,5 +954,5 @@ HyperelasticSolverHandler::HyperelasticSolverHandler(const std::shared_ptr<const
...
@@ -954,5 +954,5 @@ HyperelasticSolverHandler::HyperelasticSolverHandler(const std::shared_ptr<const
throw
NormalError
(
"unexpected mesh type"
);
throw
NormalError
(
"unexpected mesh type"
);
}
}
},
},
i_
mesh
->
variant
());
mesh
_v
->
variant
());
}
}
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