Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
40a8318b
Commit
40a8318b
authored
Oct 13, 2015
by
mattijs
Browse files
ENH: IOobject: construct as copy with different name
parent
1e24c133
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOobject/IOobject.C
View file @
40a8318b
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2015 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -234,6 +234,25 @@ Foam::IOobject::IOobject
}
Foam
::
IOobject
::
IOobject
(
const
IOobject
&
io
,
const
word
&
name
)
:
name_
(
name
),
headerClassName_
(
io
.
headerClassName_
),
note_
(
io
.
note_
),
instance_
(
io
.
instance_
),
local_
(
io
.
local_
),
db_
(
io
.
db_
),
rOpt_
(
io
.
rOpt_
),
wOpt_
(
io
.
wOpt_
),
registerObject_
(
io
.
registerObject_
),
objState_
(
io
.
objState_
)
{}
// * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
Foam
::
IOobject
::~
IOobject
()
...
...
src/OpenFOAM/db/IOobject/IOobject.H
View file @
40a8318b
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2015 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -236,6 +236,13 @@ public:
bool
registerObject
=
true
);
//- Construct as copy resetting name
IOobject
(
const
IOobject
&
io
,
const
word
&
name
);
//- Clone
Foam
::
autoPtr
<
IOobject
>
clone
()
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment