Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
c5501d36
Commit
c5501d36
authored
Jun 17, 2015
by
Siqi Ling
Browse files
small change
parent
6cf1994a
Changes
1
Hide whitespace changes
Inline
Side-by-side
extensions/demo/multimesh/src/diffuseDomain.cc
View file @
c5501d36
...
...
@@ -76,9 +76,7 @@ struct DDProblemInstat : ProblemInstat
epsilon
(
0.1
),
maxLevel
(
15
),
temperRefment
(
NULL
),
temperRefFct
(
NULL
),
c
(
radius
,
center
),
ic
(
radius
,
center
)
temperRefFct
(
NULL
)
{
Parameters
::
get
(
"radius"
,
radius
);
Parameters
::
get
(
"epsilon"
,
epsilon
);
...
...
@@ -108,6 +106,14 @@ struct DDProblemInstat : ProblemInstat
if
(
temperRefment
)
delete
temperRefment
;
temperRefment
=
NULL
;
if
(
c
)
delete
c
;
c
=
NULL
;
if
(
ic
)
delete
ic
;
ic
=
NULL
;
}
void
initialize
(
Flag
initFlag
,
...
...
@@ -118,15 +124,18 @@ struct DDProblemInstat : ProblemInstat
ProblemInstat
::
initialize
(
INIT_NOTHING
);
c
=
new
Circle
(
radius
,
center
);
ic
=
new
InverseCircle
(
radius
,
center
);
phase
=
new
DOFVector
<
double
>
(
problemStat
->
getFeSpace
(
1
),
"phase2"
);
phaseRefFct
=
new
SignedDistRefinement
(
problemStat
->
getMesh
(
1
));
phaseRefment
=
new
RefinementLevelCoords2
(
problemStat
->
getFeSpace
(
1
),
phaseRefFct
,
&
c
);
phaseRefFct
,
c
);
if
(
problemStat
->
getMeshes
().
size
()
==
2
)
{
temperRefFct
=
new
MySignedDistRefinement
(
problemStat
->
getMesh
(
0
));
temperRefment
=
new
RefinementLevelCoords2
(
problemStat
->
getFeSpace
(
0
),
temperRefFct
,
&
c
);
temperRefFct
,
c
);
}
}
...
...
@@ -138,7 +147,7 @@ struct DDProblemInstat : ProblemInstat
Timer
t
;
SignedDistFctToPhaseField
*
p
=
new
SignedDistFctToPhaseField
(
epsilon
,
&
ic
,
3.0
);
new
SignedDistFctToPhaseField
(
epsilon
,
ic
,
3.0
);
phaseRefment
->
refine
(
maxLevel
);
phase
->
interpol
(
p
);
...
...
@@ -183,8 +192,8 @@ protected:
RefinementLevelCoords2
*
phaseRefment
;
RefinementLevelCoords2
*
temperRefment
;
Circle
c
;
InverseCircle
ic
;
Circle
*
c
;
InverseCircle
*
ic
;
DOFVector
<
double
>*
phase
;
...
...
Write
Preview
Supports
Markdown
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