|
1 | 1 | #!/usr/bin/env perl |
2 | 2 | # |
3 | 3 | # Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved. |
4 | | -# Copyright (c) 2016-2017 Research Organization for Information Science |
5 | | -# and Technology (RIST). All rights reserved. |
| 4 | +# Copyright (c) 2016-2019 Research Organization for Information Science |
| 5 | +# and Technology (RIST). All rights reserved. |
6 | 6 | # Copyright (c) 2016 FUJITSU LIMITED. All rights reserved. |
7 | 7 | # $COPYRIGHT$ |
8 | 8 | # |
@@ -526,4 +526,62 @@ sub write_fortran_file { |
526 | 526 |
|
527 | 527 | write_file("$topdir/ompi/mpi/fortran/use-mpi-f08/constants.h", $output); |
528 | 528 |
|
| 529 | +$output = '! WARNING! THIS IS A GENERATED FILE!! |
| 530 | +! ANY EDITS YOU PUT HERE WILL BE LOST! |
| 531 | +! Instead, edit topdir/ompi/include/mpif-values.pl |
| 532 | +! |
| 533 | +
|
| 534 | +! |
| 535 | +! Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana |
| 536 | +! University Research and Technology |
| 537 | +! Corporation. All rights reserved. |
| 538 | +! Copyright (c) 2004-2006 The University of Tennessee and The University |
| 539 | +! of Tennessee Research Foundation. All rights |
| 540 | +! reserved. |
| 541 | +! Copyright (c) 2004-2007 High Performance Computing Center Stuttgart, |
| 542 | +! University of Stuttgart. All rights reserved. |
| 543 | +! Copyright (c) 2004-2005 The Regents of the University of California. |
| 544 | +! All rights reserved. |
| 545 | +! Copyright (c) 2007-2009 Cisco Systems, Inc. All rights reserved. |
| 546 | +! Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved. |
| 547 | +! Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. |
| 548 | +! Copyright (c) 2009-2012 Los Alamos National Security, LLC. |
| 549 | +! All rights reserved. |
| 550 | +! Copyright (c) 2016-2019 Research Organization for Information Science |
| 551 | +! and Technology (RIST). All rights reserved. |
| 552 | +! $COPYRIGHT$ |
| 553 | +! |
| 554 | +! Additional copyrights may follow |
| 555 | +! |
| 556 | +! $HEADER$ |
| 557 | +! |
| 558 | +
|
| 559 | +#ifndef USE_MPI_F08_CONSTANTS_H |
| 560 | +#define USE_MPI_F08_CONSTANTS_H |
| 561 | +
|
| 562 | +'; |
| 563 | + |
| 564 | +foreach my $key (sort(keys(%{$constants}))) { |
| 565 | + $output .= "#define OMPI_$key $constants->{$key}\n"; |
| 566 | +} |
| 567 | +$output .= "\n"; |
| 568 | +foreach my $key (sort(keys(%{$handles}))) { |
| 569 | + $output .= "#define OMPI_$key $handles->{$key}\n"; |
| 570 | +} |
| 571 | + |
| 572 | +foreach my $key (sort(keys(%{$io_constants}))) { |
| 573 | + $output .= "#define OMPI_$key $io_constants->{$key}\n"; |
| 574 | +} |
| 575 | +foreach my $key (sort(keys(%{$lio_constants}))) { |
| 576 | + $output .= "#define OMPI_$key $lio_constants->{$key}\n"; |
| 577 | +} |
| 578 | +$output .= "\n"; |
| 579 | +foreach my $key (sort(keys(%{$io_handles}))) { |
| 580 | + $output .= "#define OMPI_$key $io_handles->{$key}\n"; |
| 581 | +} |
| 582 | +$output .= "\n"; |
| 583 | +$output .= "#endif\n"; |
| 584 | + |
| 585 | +write_file("$topdir/ompi/mpi/fortran/use-mpi-f08/mod/mpi-f08-constants.h", $output); |
| 586 | + |
529 | 587 | exit(0); |
0 commit comments