Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
ians-nmh-siebert
alberta
alberta3
Commits
8af078db
Commit
8af078db
authored
8 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Indentation and cosmetics.
parent
c536f299
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add_ons/paraview/Common/alberta2paraview.c
+13
-11
13 additions, 11 deletions
add_ons/paraview/Common/alberta2paraview.c
with
13 additions
and
11 deletions
add_ons/paraview/Common/alberta2paraview.c
+
13
−
11
View file @
8af078db
...
...
@@ -165,7 +165,9 @@ static int print_help(const char *funcName, FILE *f, int status)
"`-m MESH' specifies a new mesh for all following DRVs and DRDVs (see below)
\n
"
"`-b|-x' alters the expected data-format for all following files
\n
"
" (see below)
\n
"
"
\n
"
"
\n
"
,
funcName
,
funcName
,
funcName
);
fprintf
(
f
,
"Options:
\n
"
" -t, --transient FIRST LAST
\n
"
" Convert a sequence of mesh- and data-files. The file-names
\n
"
...
...
@@ -231,8 +233,8 @@ static int print_help(const char *funcName, FILE *f, int status)
" directory containing all data-files specified by the following
\n
"
" `-m', `-s' and `-v' options.
\n
"
" -h, --help
\n
"
" Print this help.
\n
"
,
funcName
,
funcName
,
funcName
);
" Print this help.
\n
"
);
return
status
;
}
...
...
@@ -1259,7 +1261,7 @@ void write_mesh_paraview(MESH *mesh, const char *outname,
fprintf
(
paraview_file
,
">
\n
"
);
if
(
ascii
)
{
if
(
have_drv_cd
)
{
/* dump scalar cell-data */
/* dump scalar cell-data */
for
(
val_num
=
0
;
val_num
<
n_drv
;
val_num
++
)
{
if
(
!
drv_cell
[
val_num
])
{
continue
;
...
...
@@ -1311,13 +1313,13 @@ void write_mesh_paraview(MESH *mesh, const char *outname,
for
(
i
=
0
;
i
<
n_sub
;
i
++
)
{
eval_uh_dow
(
result
,
sub_center
[
i
],
uh_loc_d
,
drdv
[
val_num
]
->
fe_space
->
bas_fcts
);
}
fprintf
(
paraview_file
,
" "
);
for
(
j
=
0
;
j
<
DIM_OF_WORLD
;
j
++
)
{
fprintf
(
paraview_file
,
"%.15e%s"
,
result
[
j
],
j
<
2
?
" "
:
"
\n
"
);
}
for
(;
j
<
3
;
j
++
)
{
fprintf
(
paraview_file
,
" 0%s"
,
j
<
2
?
" "
:
"
\n
"
);
fprintf
(
paraview_file
,
" "
);
for
(
j
=
0
;
j
<
DIM_OF_WORLD
;
j
++
)
{
fprintf
(
paraview_file
,
"%.15e%s"
,
result
[
j
],
j
<
2
?
" "
:
"
\n
"
);
}
for
(;
j
<
3
;
j
++
)
{
fprintf
(
paraview_file
,
" 0%s"
,
j
<
2
?
" "
:
"
\n
"
);
}
}
}
TRAVERSE_NEXT
();
fprintf
(
paraview_file
,
" </%s>
\n
"
,
keys
[
KEY_DA
]);
...
...
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