Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Nektar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Julia
Nektar
Commits
c6ee76ba
Commit
c6ee76ba
authored
Mar 06, 2014
by
Daniele de Grazia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change fname
parent
429b7440
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
utilities/PostProcessing/ExtractSurface2DCFS.cpp
utilities/PostProcessing/ExtractSurface2DCFS.cpp
+17
-3
No files found.
utilities/PostProcessing/ExtractSurface2DCFS.cpp
View file @
c6ee76ba
...
...
@@ -33,6 +33,23 @@ using namespace Nektar;
int
main
(
int
argc
,
char
*
argv
[])
{
string
fname
=
std
::
string
(
argv
[
2
]);
int
fdot
=
fname
.
find_last_of
(
'.'
);
if
(
fdot
!=
std
::
string
::
npos
)
{
string
ending
=
fname
.
substr
(
fdot
);
// If .chk or .fld we exchange the extension in the output file.
// For all other files (e.g. .bse) we append the extension to avoid
// conflicts.
if
(
ending
==
".chk"
||
ending
==
".fld"
)
{
fname
=
fname
.
substr
(
0
,
fdot
);
}
}
fname
=
fname
+
".txt"
;
int
cnt
;
int
id1
,
id2
;
int
i
,
j
,
n
,
e
,
b
;
...
...
@@ -763,9 +780,6 @@ int main(int argc, char *argv[])
// Print the surface coordinates and the surface solution in a .txt file
ofstream
outfile
;
string
fname
=
strtok
(
argv
[
2
],
"."
);
fname
+=
".txt"
;
outfile
.
open
(
fname
);
outfile
<<
"% x[m] "
<<
"
\t
"
<<
"y[m] "
<<
"
\t
"
...
...
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