Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ddm
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
ddm
Commits
1b16d2ed
Commit
1b16d2ed
authored
Oct 11, 2022
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
get number of subfields in a SubdomainField
parent
dc2169e8
No related branches found
No related tags found
1 merge request
!20
Get number of subfields in a SubdomainField
Pipeline
#10100
passed
Oct 11, 2022
Stage: gmshfem
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/field/SubdomainField.cpp
+6
-0
6 additions, 0 deletions
src/field/SubdomainField.cpp
src/field/SubdomainField.h
+1
-0
1 addition, 0 deletions
src/field/SubdomainField.h
with
7 additions
and
0 deletions
src/field/SubdomainField.cpp
+
6
−
0
View file @
1b16d2ed
...
...
@@ -62,6 +62,12 @@ namespace gmshddm
return
T_Form
;
}
template
<
class
T_Scalar
,
gmshfem
::
field
::
Form
T_Form
>
unsigned
long
long
SubdomainField
<
T_Scalar
,
T_Form
>::
size
()
const
{
return
_fields
.
size
();
}
template
<
class
T_Scalar
,
gmshfem
::
field
::
Form
T_Form
>
const
gmshfem
::
field
::
Field
<
T_Scalar
,
T_Form
>
&
SubdomainField
<
T_Scalar
,
T_Form
>::
operator
()(
const
unsigned
int
i
)
const
{
...
...
This diff is collapsed.
Click to expand it.
src/field/SubdomainField.h
+
1
−
0
View file @
1b16d2ed
...
...
@@ -38,6 +38,7 @@ namespace gmshddm
SubdomainField
&
operator
=
(
const
SubdomainField
<
T_Scalar
,
T_Form
>
&
other
);
gmshfem
::
field
::
Form
form
()
const
;
unsigned
long
long
size
()
const
;
const
gmshfem
::
field
::
Field
<
T_Scalar
,
T_Form
>
&
operator
()(
const
unsigned
int
i
)
const
;
gmshfem
::
field
::
Field
<
T_Scalar
,
T_Form
>
&
operator
()(
const
unsigned
int
i
);
...
...
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