Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
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
Container registry
Model registry
Operate
Environments
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
Ansgar Burchardt
dune-fufem
Commits
435d5808
Commit
435d5808
authored
9 years ago
by
Jonathan Youett
Browse files
Options
Downloads
Patches
Plain Diff
Use unique_ptr instead of raw pointer
parent
eb5c4f3b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/readbitfield.hh
+1
-3
1 addition, 3 deletions
dune/fufem/readbitfield.hh
with
1 addition
and
3 deletions
dune/fufem/readbitfield.hh
+
1
−
3
View file @
435d5808
...
@@ -17,7 +17,7 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
...
@@ -17,7 +17,7 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
#ifdef HAVE_AMIRAMESH
#ifdef HAVE_AMIRAMESH
// /////////////////////////////////////////////////////
// /////////////////////////////////////////////////////
// Load the AmiraMesh file
// Load the AmiraMesh file
AmiraMesh
*
am
=
AmiraMesh
::
read
(
filename
.
c_str
());
std
::
unique_ptr
<
AmiraMesh
>
am
(
AmiraMesh
::
read
(
filename
.
c_str
())
)
;
if
(
!
am
)
if
(
!
am
)
DUNE_THROW
(
Dune
::
Exception
,
"Could not open AmiraMesh file: "
<<
filename
);
DUNE_THROW
(
Dune
::
Exception
,
"Could not open AmiraMesh file: "
<<
filename
);
// check for consistency
// check for consistency
...
@@ -60,8 +60,6 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
...
@@ -60,8 +60,6 @@ inline void readBitField(Dune::BitSetVector<ncomp>& field, int size, const std::
}
}
std
::
cout
<<
"BitField "
<<
filename
<<
" loaded successfully!"
<<
std
::
endl
;
std
::
cout
<<
"BitField "
<<
filename
<<
" loaded successfully!"
<<
std
::
endl
;
delete
(
am
);
#else
#else
DUNE_THROW
(
Dune
::
Exception
,
"You need AmiraMesh to use readBitField"
);
DUNE_THROW
(
Dune
::
Exception
,
"You need AmiraMesh to use readBitField"
);
#endif
#endif
...
...
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