git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@119
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
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);
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]);
- /* 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);