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