Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
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
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
sasa
Commits
01a43254
Commit
01a43254
authored
6 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
Fix: always exit before launching any simulation when -gld is used
parent
33c1385c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/sasacore/sasa.ml
+3
-2
3 additions, 2 deletions
lib/sasacore/sasa.ml
with
3 additions
and
2 deletions
lib/sasacore/sasa.ml
+
3
−
2
View file @
01a43254
(* Time-stamp: <modified the
18
/03/2019 (at
09:21
) by Erwan Jahier> *)
(* Time-stamp: <modified the
20
/03/2019 (at
12:09
) by Erwan Jahier> *)
(* XXX Je pourrais utiliser Lwt pour rendre step non-bloquant, ce qui
permettrait d'accelerer la simu sur les machines qui ont plusieurs
...
...
@@ -170,7 +170,8 @@ let (make : string array -> t) =
if
args
.
gen_lutin
then
(
let
fn
=
(
Filename
.
remove_extension
args
.
topo
)
^
".lut"
in
if
Sys
.
file_exists
fn
then
(
Printf
.
eprintf
"%s already exists.
\n
"
fn
;
flush
stderr
Printf
.
eprintf
"%s already exists: rename it to proceed.
\n
"
fn
;
flush
stderr
;
exit
1
)
else
let
oc
=
open_out
fn
in
Printf
.
fprintf
oc
"%s"
(
GenLutin
.
f
pl
);
...
...
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