A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the default port
[simgrid.git]
/
examples
/
gras_stub_generator
diff --git
a/examples/gras_stub_generator
b/examples/gras_stub_generator
index
0914718
..
9670c75
100755
(executable)
--- a/
examples/gras_stub_generator
+++ b/
examples/gras_stub_generator
@@
-58,6
+58,7
@@
print OUT "\n$warn\n";
foreach (keys %process) {
print OUT<<EOF
int launch_$_(int argc, char *argv[]) {
foreach (keys %process) {
print OUT<<EOF
int launch_$_(int argc, char *argv[]) {
+
if (gras_process_init()) exit(1);
$_(argc,argv);
if (gras_process_exit()) exit(1);
if (gras_process_init()) exit(1);
$_(argc,argv);
if (gras_process_exit()) exit(1);
@@
-72,13
+73,16
@@
print OUT "\n$warn\n";
print OUT <<EOF
int main (int argc,char *argv[]) {
print OUT <<EOF
int main (int argc,char *argv[]) {
-
- if (argc
!=
3) {
- fprintf(stderr, "Usage: %s platform_file application_description.txt\\n",argv[0]);
+
+ if (argc
<
3) {
+ fprintf(stderr, "Usage: %s platform_file application_description.txt
[extra args]
\\n",argv[0]);
exit(1);
}
exit(1);
}
- /* Simulation setting */
+ /* GRAS setup */
+ gras_init(&argc, argv);
+
+ /* Simulation setup */
MSG_global_init();
MSG_set_verbosity(MSG_SILENT);
MSG_set_channel_number(GRAS_MAX_CHANNEL);
MSG_global_init();
MSG_set_verbosity(MSG_SILENT);
MSG_set_channel_number(GRAS_MAX_CHANNEL);