Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
363ffc70
Commit
363ffc70
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
removed extra white space and node coord format in UNV export
parent
bfeec0f9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Mesh/Print_Mesh.cpp
+16
-14
16 additions, 14 deletions
Mesh/Print_Mesh.cpp
TODO
+6
-1
6 additions, 1 deletion
TODO
doc/CREDITS
+4
-3
4 additions, 3 deletions
doc/CREDITS
doc/VERSIONS
+6
-5
6 additions, 5 deletions
doc/VERSIONS
with
32 additions
and
23 deletions
Mesh/Print_Mesh.cpp
+
16
−
14
View file @
363ffc70
// $Id: Print_Mesh.cpp,v 1.5
8
2005-0
1
-0
8 20:15
:1
2
geuzaine Exp $
// $Id: Print_Mesh.cpp,v 1.5
9
2005-0
2
-0
4 16:06
:1
0
geuzaine Exp $
//
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -628,25 +628,27 @@ static FILE *UNVFILE;
static
void
_unv_process_nodes
(
Mesh
*
M
)
{
int
nbnod
;
double
x
,
y
,
z
;
int
i
,
idnod
;
Vertex
*
v
;
List_T
*
Nodes
=
Tree2List
(
M
->
Vertices
);
fprintf
(
UNVFILE
,
"%6d
\n
"
,
-
1
);
fprintf
(
UNVFILE
,
"%6d
\n
"
,
NODES
);
nbnod
=
List_Nbr
(
Nodes
);
int
nbnod
=
List_Nbr
(
Nodes
);
for
(
i
=
0
;
i
<
nbnod
;
i
++
)
{
for
(
int
i
=
0
;
i
<
nbnod
;
i
++
)
{
List_Read
(
Nodes
,
i
,
&
v
);
idnod
=
v
->
Num
;
x
=
v
->
Pos
.
X
*
CTX
.
mesh
.
scaling_factor
;
y
=
v
->
Pos
.
Y
*
CTX
.
mesh
.
scaling_factor
;
z
=
v
->
Pos
.
Z
*
CTX
.
mesh
.
scaling_factor
;
int
idnod
=
v
->
Num
;
double
x
=
v
->
Pos
.
X
*
CTX
.
mesh
.
scaling_factor
;
double
y
=
v
->
Pos
.
Y
*
CTX
.
mesh
.
scaling_factor
;
double
z
=
v
->
Pos
.
Z
*
CTX
.
mesh
.
scaling_factor
;
fprintf
(
UNVFILE
,
"%10d%10d%10d%10d
\n
"
,
idnod
,
1
,
1
,
11
);
fprintf
(
UNVFILE
,
"%21.16fD+00 %21.16fD+00 %21.16fD+00
\n
"
,
x
,
y
,
z
);
char
tmp
[
128
];
// ugly hack to print number with 'D+XX' exponents
sprintf
(
tmp
,
"%25.16E%25.16E%25.16E
\n
"
,
x
,
y
,
z
);
tmp
[
21
]
=
'D'
;
tmp
[
46
]
=
'D'
;
tmp
[
71
]
=
'D'
;
fprintf
(
UNVFILE
,
tmp
);
}
List_Delete
(
Nodes
);
...
...
@@ -847,8 +849,8 @@ static void _unv_add_vertex(void *a, void *b)
return
;
Tree_Add
(
tree
,
&
v
->
Num
);
fprintf
(
UNVFILE
,
"%10d%10d%2d%2d%2d%2d%2d%2d
\n
"
,
v
->
Num
,
1
,
0
,
1
,
0
,
0
,
0
,
0
);
fprintf
(
UNVFILE
,
"
%21.16fD+00 %21.16fD+00 %21.16fD+00
\n
"
,
0.
,
1.
,
0.
);
fprintf
(
UNVFILE
,
"
%21.16fD+00 %21.16fD+00 %21.16fD+00
\n
"
,
0.
,
0.
,
0.
);
fprintf
(
UNVFILE
,
"
0.0000000000000000D+00 1.0000000000000000D+00 0.0000000000000000D+00
\n
"
);
fprintf
(
UNVFILE
,
"
0.0000000000000000D+00 0.0000000000000000D+00 0.0000000000000000D+00
\n
"
);
fprintf
(
UNVFILE
,
"%10d%10d%10d%10d%10d%10d
\n
"
,
0
,
0
,
0
,
0
,
0
,
0
);
}
...
...
This diff is collapsed.
Click to expand it.
TODO
+
6
−
1
View file @
363ffc70
$Id: TODO,v 1.8
3
2005-02-0
2
1
8:56:49
geuzaine Exp $
$Id: TODO,v 1.8
4
2005-02-0
4
1
6:06:10
geuzaine Exp $
********************************************************************
...
...
@@ -45,6 +45,11 @@ Add a "bitmap" object in the views, e.g. to add a logo
********************************************************************
reduce cpu during 'sleep' by using small 'usleep' calls instead of a
simple while(1) loop
********************************************************************
add the ability to create tensors with Plugin(Extract)?
********************************************************************
...
...
This diff is collapsed.
Click to expand it.
doc/CREDITS
+
4
−
3
View file @
363ffc70
$Id: CREDITS,v 1.2
5
2005-0
1-20 01:25:49
geuzaine Exp $
$Id: CREDITS,v 1.2
6
2005-0
2-04 16:06:10
geuzaine Exp $
Gmsh is copyright (C) 1997-2005
...
...
@@ -95,5 +95,6 @@ Jose Miguel Pasini <jmp84 at cornell.edu>, Philippe Lussou <plussou at
necs.fr>, Jacques Kools <JKools at veeco.com>, Bayram Yenikaya
<yenikaya at math.umn.edu>, Peter Hornby <p.hornby at arrc.csiro.au>,
Krishna Mohan Gundu <gkmohan at gmail.com>, Christopher Stott
<C.Stott@surrey.ac.uk>, Timmy Schumacher <Tim.Schumacher@colorado.edu>,
Carl Osterwisch <osterwischc@asme.org>.
<C.Stott@surrey.ac.uk>, Timmy Schumacher
<Tim.Schumacher@colorado.edu>, Carl Osterwisch <osterwischc@asme.org>,
Bruno Frackowiak <bruno.frackowiak@onecert.fr>.
This diff is collapsed.
Click to expand it.
doc/VERSIONS
+
6
−
5
View file @
363ffc70
$Id: VERSIONS,v 1.30
7
2005-02-0
2
1
8:48:0
0 geuzaine Exp $
$Id: VERSIONS,v 1.30
8
2005-02-0
4
1
6:06:1
0 geuzaine Exp $
New in 1.59: added support for discrete (triangulated) surfaces,
either in STL format or with the new "Discrete Surface" command; added
...
...
@@ -11,10 +11,11 @@ Divergence); changed default colormap to match Matlab's "Jet"
colormap; new transformation matrix option for views (for
non-destructive rotations, symmetries, etc.); improved solver
interface to keep the GUI responsive during solver calls; new C++ and
Python solver examples; simplified Tools->Visibility GUI; handle
negative numbers in transfinite lines with "Progression" gracefully;
added ability to retrive Gmsh's version number in the parser (to help
write backward compatible scripts); fixed various small bugs.
Python solver examples; simplified Tools->Visibility GUI; transfinite
lines with "Progression" now allow negative line numbers to reverse
the progression; added ability to retrieve Gmsh's version number in
the parser (to help write backward compatible scripts); fixed white
space in unv mesh output; fixed various small bugs.
New in 1.58: fixed UNIX socket interface on Windows (broken by the TCP
solver patch in 1.57); bumped version number of default
...
...
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