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
Backofen, Rainer
amdis
Commits
a19e0ad3
Commit
a19e0ad3
authored
Mar 05, 2013
by
Praetorius, Simon
Browse files
windows compatibility changes
parent
0e6ef10a
Changes
5
Hide whitespace changes
Inline
Side-by-side
extensions/base_problems/BaseProblem.hh
View file @
a19e0ad3
...
...
@@ -118,7 +118,7 @@ Flag BaseProblem<ProblemType>::initDataFromFile(AdaptInfo *adaptInfo)
else
if
(
readFormat
==
"multi-vtu"
)
{
size_t
numFiles
=
0
;
Initfile
::
get
(
name
+
"->number of files"
,
numFiles
);
for
(
size_t
n
;
n
<
numFiles
;
n
++
)
{
for
(
size_t
n
=
0
;
n
<
numFiles
;
n
++
)
{
std
::
vector
<
std
::
string
>
filenames
;
Initfile
::
get
(
name
+
"->value file["
+
boost
::
lexical_cast
<
std
::
string
>
(
n
)
+
"]"
,
filenames
);
if
(
filenames
.
size
()
==
0
)
...
...
extensions/base_problems/CahnHilliardNavierStokes.cc
View file @
a19e0ad3
...
...
@@ -107,7 +107,7 @@ void CahnHilliardNavierStokes::transferInitialSolution(AdaptInfo *adaptInfo)
{
calcVelocity
();
for
(
in
t
i
=
0
;
i
<
2
+
dow
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
2
+
dow
;
i
++
)
prob
->
setExactSolution
(
prob
->
getSolution
()
->
getDOFVector
(
i
),
i
);
fileWriter
->
writeFiles
(
adaptInfo
,
false
);
...
...
extensions/base_problems/NavierStokesPhase_TaylorHood.cc
View file @
a19e0ad3
...
...
@@ -50,7 +50,7 @@ void NavierStokesPhase_TaylorHood::transferInitialSolution(AdaptInfo *adaptInfo)
{
FUNCNAME
(
"NavierStokesPhase_TaylorHood::transferInitialSolution()"
);
fileWriterPhase
=
new
FileWriter
(
name
+
"->phase->output"
,
getFeSpace
()
->
getMesh
(),
phase
);
for
(
in
t
i
=
0
;
i
<
dow
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
dow
;
i
++
)
transformDOF
(
prob
->
getSolution
()
->
getDOFVector
(
i
),
phase
,
prob
->
getSolution
()
->
getDOFVector
(
i
),
new
AMDiS
::
Mult
<
double
>
);
super
::
transferInitialSolution
(
adaptInfo
);
...
...
extensions/base_problems/NavierStokes_TaylorHood.cc
View file @
a19e0ad3
...
...
@@ -115,7 +115,7 @@ void NavierStokes_TaylorHood::solveInitialProblem(AdaptInfo *adaptInfo)
void
NavierStokes_TaylorHood
::
transferInitialSolution
(
AdaptInfo
*
adaptInfo
)
{
FUNCNAME
(
"NavierStokes_TaylorHood::transferInitialSolution()"
);
for
(
in
t
i
=
0
;
i
<
dow
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
dow
;
i
++
)
prob
->
setExactSolution
(
prob
->
getSolution
()
->
getDOFVector
(
i
),
i
);
calcVelocity
();
...
...
extensions/base_problems/NavierStokes_TaylorHood_RB.cc
View file @
a19e0ad3
...
...
@@ -119,7 +119,7 @@ void NavierStokes_TaylorHood_RB::transferInitialSolution(AdaptInfo *adaptInfo)
else
if
(
dow
==
3
)
transformDOF
(
prob
->
getSolution
()
->
getDOFVector
(
0
),
prob
->
getSolution
()
->
getDOFVector
(
1
),
prob
->
getSolution
()
->
getDOFVector
(
2
),
velocity
,
new
AMDiS
::
Vec3WorldVec
<
double
>
);
for
(
in
t
i
=
0
;
i
<
dow
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
dow
;
i
++
)
prob
->
setExactSolution
(
prob
->
getSolution
()
->
getDOFVector
(
i
),
i
);
fileWriter
->
writeFiles
(
adaptInfo
,
false
);
...
...
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