Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
TurTLE
TurTLE
Commits
8a34000d
Commit
8a34000d
authored
3 months ago
by
Armin Leonhard Roediger
Committed by
Cristian Lalescu
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Renamed write_slab to write_rslab. And added clarifying comment for this
method.
parent
363a9652
No related branches found
No related tags found
1 merge request
!148
Feature/write slab
Pipeline
#266472
passed
2 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpp/field.hpp
+1
-1
1 addition, 1 deletion
cpp/field.hpp
cpp/field_io.cpp
+5
-1
5 additions, 1 deletion
cpp/field_io.cpp
with
6 additions
and
2 deletions
cpp/field.hpp
+
1
−
1
View file @
8a34000d
...
@@ -89,7 +89,7 @@ class field
...
@@ -89,7 +89,7 @@ class field
const
std
::
string
field_name
,
const
std
::
string
field_name
,
const
int
iteration
,
const
int
iteration
,
const
bool
read
=
true
);
const
bool
read
=
true
);
int
write_slab
(
int
write_
r
slab
(
const
std
::
string
fname
,
const
std
::
string
fname
,
const
std
::
string
field_name
,
const
std
::
string
field_name
,
const
int
iteration
,
const
int
iteration
,
...
...
This diff is collapsed.
Click to expand it.
cpp/field_io.cpp
+
5
−
1
View file @
8a34000d
...
@@ -345,10 +345,14 @@ int field<rnumber, be, fc>::io(
...
@@ -345,10 +345,14 @@ int field<rnumber, be, fc>::io(
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
/** Writes a slab of a real field to a file. The slab starts at index 0
* and ends at thickness in the lowest dimension (z-direction).
* All other dimensions are kept untouched.
*/
template
<
typename
rnumber
,
template
<
typename
rnumber
,
field_backend
be
,
field_backend
be
,
field_components
fc
>
field_components
fc
>
int
field
<
rnumber
,
be
,
fc
>::
write_slab
(
int
field
<
rnumber
,
be
,
fc
>::
write_
r
slab
(
const
std
::
string
fname
,
const
std
::
string
fname
,
const
std
::
string
field_name
,
const
std
::
string
field_name
,
const
int
iteration
,
const
int
iteration
,
...
...
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