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
First step in the implementation of topologies in SMPI
[simgrid.git]
/
src
/
smpi
/
smpif2c.in
diff --git
a/src/smpi/smpif2c.in
b/src/smpi/smpif2c.in
index
4b99f2b
..
e79c31f
100755
(executable)
--- a/
src/smpi/smpif2c.in
+++ b/
src/smpi/smpif2c.in
@@
-1,5
+1,11
@@
#! /usr/bin/env perl
#! /usr/bin/env perl
+# Copyright (c) 2010-2014. The SimGrid Team.
+# All rights reserved.
+
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
use warnings;
use strict;
use File::Temp;
use warnings;
use strict;
use File::Temp;
@@
-25,7
+31,6
@@
foreach my $fortran (@ARGV) {
die "F2C failed\n" if $?;
open F2C,"<$output" or die "Unable to open file $output";
my $started = 0;
die "F2C failed\n" if $?;
open F2C,"<$output" or die "Unable to open file $output";
my $started = 0;
- my $cutext = 0;
print $tmp "#ifndef INTEGER_STAR_8\n";
print $tmp "#define INTEGER_STAR_8\n";
print $tmp "#endif\n";
print $tmp "#ifndef INTEGER_STAR_8\n";
print $tmp "#define INTEGER_STAR_8\n";
print $tmp "#endif\n";
@@
-52,16
+57,7
@@
foreach my $fortran (@ARGV) {
if(/\/\* Table of constant values \*\// || /MAIN__/) {
$started = 0;
}
if(/\/\* Table of constant values \*\// || /MAIN__/) {
$started = 0;
}
- if(/extern \/\* Subroutine \*\//) {
- $cutext = 1;
- }
$_ =~ s/(mpi_[\w]*_)_/$1/g;
$_ =~ s/(mpi_[\w]*_)_/$1/g;
- if($cutext) {
- if(/;$/) {
- $cutext = 0;
- }
- next;
- }
if(/\/* Main program alias \*\/\s*int\s+.*\s*\(\s*\)\s*{(.*)}/) {
$_ = "int smpi_simulated_main_(int argc, char** argv) { smpi_process_init(&argc, &argv); $1 }\n";
}
if(/\/* Main program alias \*\/\s*int\s+.*\s*\(\s*\)\s*{(.*)}/) {
$_ = "int smpi_simulated_main_(int argc, char** argv) { smpi_process_init(&argc, &argv); $1 }\n";
}