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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
2ac977dd
Commit
2ac977dd
authored
3 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Remove name field from FixedBoundaryConditionDescriptor and plug it
parent
073fda6c
No related branches found
No related tags found
1 merge request
!96
Add random number engine encapsulation.
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/language/modules/SchemeModule.cpp
+12
-0
12 additions, 0 deletions
src/language/modules/SchemeModule.cpp
src/scheme/FixedBoundaryConditionDescriptor.hpp
+4
-13
4 additions, 13 deletions
src/scheme/FixedBoundaryConditionDescriptor.hpp
with
16 additions
and
13 deletions
src/language/modules/SchemeModule.cpp
+
12
−
0
View file @
2ac977dd
...
@@ -191,6 +191,18 @@ SchemeModule::SchemeModule()
...
@@ -191,6 +191,18 @@ SchemeModule::SchemeModule()
));
));
this
->
_addBuiltinFunction
(
"fixed"
,
std
::
make_shared
<
BuiltinFunctionEmbedder
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>
(
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
)
>>
(
[](
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
boundary
)
->
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>
{
return
std
::
make_shared
<
FixedBoundaryConditionDescriptor
>
(
boundary
);
}
));
this
this
->
_addBuiltinFunction
(
"symmetry"
,
->
_addBuiltinFunction
(
"symmetry"
,
std
::
make_shared
<
BuiltinFunctionEmbedder
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>
(
std
::
make_shared
<
BuiltinFunctionEmbedder
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>
(
...
...
This diff is collapsed.
Click to expand it.
src/scheme/FixedBoundaryConditionDescriptor.hpp
+
4
−
13
View file @
2ac977dd
...
@@ -13,7 +13,7 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
...
@@ -13,7 +13,7 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
std
::
ostream
&
std
::
ostream
&
_write
(
std
::
ostream
&
os
)
const
final
_write
(
std
::
ostream
&
os
)
const
final
{
{
os
<<
"fixed("
<<
m_name
<<
','
<<
*
m_boundary_descriptor
<<
")"
;
os
<<
"fixed("
<<
*
m_boundary_descriptor
<<
")"
;
return
os
;
return
os
;
}
}
...
@@ -22,12 +22,6 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
...
@@ -22,12 +22,6 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
m_boundary_descriptor
;
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
m_boundary_descriptor
;
public
:
public
:
std
::
string_view
name
()
const
{
return
m_name
;
}
const
IBoundaryDescriptor
&
const
IBoundaryDescriptor
&
boundaryDescriptor
()
const
boundaryDescriptor
()
const
{
{
...
@@ -40,12 +34,9 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
...
@@ -40,12 +34,9 @@ class FixedBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
return
Type
::
fixed
;
return
Type
::
fixed
;
}
}
FixedBoundaryConditionDescriptor
(
const
std
::
string_view
name
,
FixedBoundaryConditionDescriptor
(
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
boundary_descriptor
)
std
::
shared_ptr
<
const
IBoundaryDescriptor
>
boundary_descriptor
)
:
m_boundary_descriptor
(
boundary_descriptor
)
:
m_name
{
name
},
m_boundary_descriptor
(
boundary_descriptor
)
{}
{
;
}
FixedBoundaryConditionDescriptor
(
const
FixedBoundaryConditionDescriptor
&
)
=
delete
;
FixedBoundaryConditionDescriptor
(
const
FixedBoundaryConditionDescriptor
&
)
=
delete
;
FixedBoundaryConditionDescriptor
(
FixedBoundaryConditionDescriptor
&&
)
=
delete
;
FixedBoundaryConditionDescriptor
(
FixedBoundaryConditionDescriptor
&&
)
=
delete
;
...
...
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