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
bcd55100
Commit
bcd55100
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
better fix: *only* start from scratch if we actually deleted something
parent
8ae31099
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/Geo.cpp
+9
-7
9 additions, 7 deletions
Geo/Geo.cpp
Geo/Geo.h
+1
-1
1 addition, 1 deletion
Geo/Geo.h
with
10 additions
and
8 deletions
Geo/Geo.cpp
+
9
−
7
View file @
bcd55100
// $Id: Geo.cpp,v 1.5
5
2006-08-18 1
7:49:35
geuzaine Exp $
// $Id: Geo.cpp,v 1.5
6
2006-08-18 1
8:00:42
geuzaine Exp $
//
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -77,7 +77,7 @@ double evaluate_scalarfunction(char *var, double val, char *funct)
...
@@ -77,7 +77,7 @@ double evaluate_scalarfunction(char *var, double val, char *funct)
return
*
(
double
*
)
List_Pointer
(
TheSymbol_P
->
val
,
0
);
return
*
(
double
*
)
List_Pointer
(
TheSymbol_P
->
val
,
0
);
}
}
void
add_infile
(
char
*
text
,
char
*
fich
)
void
add_infile
(
char
*
text
,
char
*
fich
,
bool
deleted_something
)
{
{
FILE
*
file
;
FILE
*
file
;
...
@@ -100,15 +100,17 @@ void add_infile(char *text, char *fich)
...
@@ -100,15 +100,17 @@ void add_infile(char *text, char *fich)
fprintf
(
file
,
"%s
\n
"
,
text
);
fprintf
(
file
,
"%s
\n
"
,
text
);
fclose
(
file
);
fclose
(
file
);
// we need to start from scratch since the command just parsed could
if
(
deleted_something
){
// have deleted some entities
// we need to start from scratch since the command just parsed
GMODEL
->
destroy
();
// could have deleted some entities
GMODEL
->
destroy
();
}
GMODEL
->
import
();
GMODEL
->
import
();
}
}
void
coherence
(
char
*
fich
)
void
coherence
(
char
*
fich
)
{
{
add_infile
(
"Coherence;"
,
fich
);
add_infile
(
"Coherence;"
,
fich
,
true
);
}
}
void
strncat_list
(
char
*
text
,
List_T
*
list
)
void
strncat_list
(
char
*
text
,
List_T
*
list
)
...
@@ -132,7 +134,7 @@ void delet(List_T *list, char *fich, char *what)
...
@@ -132,7 +134,7 @@ void delet(List_T *list, char *fich, char *what)
snprintf
(
text
,
BUFFSIZE
,
"Delete {
\n
%s{"
,
what
);
snprintf
(
text
,
BUFFSIZE
,
"Delete {
\n
%s{"
,
what
);
strncat_list
(
text
,
list
);
strncat_list
(
text
,
list
);
strncat
(
text
,
"};
\n
}"
,
BUFFSIZE
-
strlen
(
text
));
strncat
(
text
,
"};
\n
}"
,
BUFFSIZE
-
strlen
(
text
));
add_infile
(
text
,
fich
);
add_infile
(
text
,
fich
,
true
);
}
}
void
add_trsfellisurf
(
int
type
,
int
N
,
int
*
l
,
char
*
fich
,
char
*
dir
)
void
add_trsfellisurf
(
int
type
,
int
N
,
int
*
l
,
char
*
fich
,
char
*
dir
)
...
...
This diff is collapsed.
Click to expand it.
Geo/Geo.h
+
1
−
1
View file @
bcd55100
...
@@ -86,7 +86,7 @@ double evaluate_scalarfunction (char *var, double val, char *funct);
...
@@ -86,7 +86,7 @@ double evaluate_scalarfunction (char *var, double val, char *funct);
void
coherence
(
char
*
fich
);
void
coherence
(
char
*
fich
);
void
delet
(
List_T
*
list
,
char
*
fich
,
char
*
what
);
void
delet
(
List_T
*
list
,
char
*
fich
,
char
*
what
);
void
add_infile
(
char
*
text
,
char
*
fich
);
void
add_infile
(
char
*
text
,
char
*
fich
,
bool
deleted_something
=
false
);
void
add_trsfline
(
int
N
,
int
*
l
,
char
*
fich
,
char
*
type
,
char
*
typearg
,
char
*
pts
);
void
add_trsfline
(
int
N
,
int
*
l
,
char
*
fich
,
char
*
type
,
char
*
typearg
,
char
*
pts
);
void
add_trsfellisurf
(
int
type
,
int
N
,
int
*
l
,
char
*
fich
,
char
*
dir
);
void
add_trsfellisurf
(
int
type
,
int
N
,
int
*
l
,
char
*
fich
,
char
*
dir
);
void
add_trsfvol
(
int
N
,
int
*
l
,
char
*
fich
);
void
add_trsfvol
(
int
N
,
int
*
l
,
char
*
fich
);
...
...
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