Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
waves
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Naa Xavier
waves
Commits
34e37ed8
Commit
34e37ed8
authored
9 years ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
correction print Problem
parent
bf2717e2
No related branches found
Branches containing commit
Tags
v1.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
waves/src/wProblem.cpp
+3
-3
3 additions, 3 deletions
waves/src/wProblem.cpp
waves/src/wSource.cpp
+3
-2
3 additions, 2 deletions
waves/src/wSource.cpp
with
6 additions
and
5 deletions
waves/src/wProblem.cpp
+
3
−
3
View file @
34e37ed8
...
...
@@ -16,10 +16,10 @@ Problem::write(std::ostream &out) const
out
<<
" + mesh:
\n
"
;
out
<<
msh
;
out
<<
" + sources:
\n
"
;
for
(
auto
s
:
srcs
)
std
::
c
out
<<
*
s
;
for
(
auto
s
:
srcs
)
out
<<
*
s
<<
'\n'
;
out
<<
" + media:
\n
"
;
for
(
auto
m
:
media
)
std
::
c
out
<<
*
m
;
for
(
auto
m
:
media
)
out
<<
*
m
<<
'\n'
;
out
<<
" + boundaries:
\n
"
;
for
(
auto
b
:
bnds
)
std
::
c
out
<<
*
b
;
for
(
auto
b
:
bnds
)
out
<<
*
b
<<
'\n'
;
}
This diff is collapsed.
Click to expand it.
waves/src/wSource.cpp
+
3
−
2
View file @
34e37ed8
...
...
@@ -32,7 +32,8 @@ Source::Source(waves::Problem &pbl, std::string const &name) : Group(pbl.msh, na
void
Source
::
write
(
std
::
ostream
&
out
)
const
{
out
<<
"Source on "
<<
*
tag
<<
'\n'
;
out
<<
"Source on "
<<
*
tag
;
out
<<
"("
<<
nodes
.
size
()
<<
" nodes)"
;
//std::for_each(nodes.begin(), nodes.end(), [&](Node *n) { out << '\t' << *n << '\n'; });
for
(
auto
n
:
nodes
)
{
out
<<
'\t'
<<
*
n
<<
'\n'
;
}
//
for(auto n : nodes) { out << '\t' << *n << '\n'; }
}
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