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
ed88a940
Commit
ed88a940
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
00c3549d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/Context.cpp
+19
-2
19 additions, 2 deletions
Common/Context.cpp
Common/Context.h
+2
-2
2 additions, 2 deletions
Common/Context.h
Geo/Print_Geo.cpp
+1
-2
1 addition, 2 deletions
Geo/Print_Geo.cpp
with
22 additions
and
6 deletions
Common/Context.cpp
+
19
−
2
View file @
ed88a940
/* $Id: Context.cpp,v 1.1
7
2000-12-08 1
0:5
6:3
6
geuzaine Exp $ */
/* $Id: Context.cpp,v 1.1
8
2000-12-08 1
1:1
6:3
4
geuzaine Exp $ */
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"Const.h"
#include
"Const.h"
...
@@ -342,8 +342,19 @@ void Init_Context(void){
...
@@ -342,8 +342,19 @@ void Init_Context(void){
extern
List_T
*
Post_ViewList
;
extern
List_T
*
Post_ViewList
;
void
Print_Context
(
FILE
*
file
){
void
Print_Context
(
char
*
filename
){
FILE
*
file
;
int
i
;
int
i
;
if
(
filename
){
file
=
fopen
(
filename
,
"w"
);
if
(
!
file
){
Msg
(
WARNING
,
"Unable to Open File '%s'"
,
filename
);
return
;
}
}
else
file
=
stdout
;
Print_StringOptions
(
GeneralOptions_String
,
"General."
,
file
);
Print_StringOptions
(
GeneralOptions_String
,
"General."
,
file
);
Print_NumberOptions
(
GeneralOptions_Number
,
"General."
,
file
);
Print_NumberOptions
(
GeneralOptions_Number
,
"General."
,
file
);
...
@@ -374,6 +385,12 @@ void Print_Context(FILE *file){
...
@@ -374,6 +385,12 @@ void Print_Context(FILE *file){
Print_NumberOptions
(
PrintOptions_Number
,
"Print."
,
file
);
Print_NumberOptions
(
PrintOptions_Number
,
"Print."
,
file
);
Print_ArrayOptions
(
PrintOptions_Array
,
"Print."
,
file
);
Print_ArrayOptions
(
PrintOptions_Array
,
"Print."
,
file
);
Print_ColorOptions
(
PrintOptions_Color
,
"Print."
,
file
);
Print_ColorOptions
(
PrintOptions_Color
,
"Print."
,
file
);
if
(
filename
){
Msg
(
INFOS
,
"Options Output Complete '%s'"
,
filename
);
Msg
(
INFO
,
"Wrote File '%s'"
,
filename
);
fclose
(
file
);
}
}
}
void
Context_T
::
buildRotmatrix
(
float
m
[
4
][
4
])
void
Context_T
::
buildRotmatrix
(
float
m
[
4
][
4
])
...
...
This diff is collapsed.
Click to expand it.
Common/Context.h
+
2
−
2
View file @
ed88a940
/* $Id: Context.h,v 1.1
6
2000-12-0
6 22:09:53
geuzaine Exp $ */
/* $Id: Context.h,v 1.1
7
2000-12-0
8 11:16:34
geuzaine Exp $ */
#ifndef _CONTEXT_H_
#ifndef _CONTEXT_H_
#define _CONTEXT_H_
#define _CONTEXT_H_
...
@@ -202,6 +202,6 @@ void Print_ColorOptions(StringXArray s[], char *prefix, FILE *file);
...
@@ -202,6 +202,6 @@ void Print_ColorOptions(StringXArray s[], char *prefix, FILE *file);
void
Init_Colors
(
int
num
);
void
Init_Colors
(
int
num
);
void
Init_Context
(
void
);
void
Init_Context
(
void
);
void
Print_Context
(
FILE
*
file
);
void
Print_Context
(
char
*
file
name
);
#endif
#endif
This diff is collapsed.
Click to expand it.
Geo/Print_Geo.cpp
+
1
−
2
View file @
ed88a940
/* $Id: Print_Geo.cpp,v 1.
7
2000-12-0
5
1
5:47:04
geuzaine Exp $ */
/* $Id: Print_Geo.cpp,v 1.
8
2000-12-0
8
1
1:16:36
geuzaine Exp $ */
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"Geo.h"
#include
"Geo.h"
...
@@ -173,7 +173,6 @@ void Print_Geo(Mesh *M, char *filename){
...
@@ -173,7 +173,6 @@ void Print_Geo(Mesh *M, char *filename){
else
else
FOUT
=
stdout
;
FOUT
=
stdout
;
Print_Context
(
FOUT
);
Tree_Action
(
M
->
Points
,
Print_Point
);
Tree_Action
(
M
->
Points
,
Print_Point
);
Tree_Action
(
M
->
Curves
,
Print_Curve
);
Tree_Action
(
M
->
Curves
,
Print_Curve
);
Tree_Action
(
M
->
Surfaces
,
Print_Surface
);
Tree_Action
(
M
->
Surfaces
,
Print_Surface
);
...
...
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