diff --git a/doxygen/examples.dox b/doxygen/examples.dox index f26987f37..3f5dbac42 100644 --- a/doxygen/examples.dox +++ b/doxygen/examples.dox @@ -23,7 +23,7 @@ defined in a message and how to iterate through them. \example grib_set_pv.f90 How to set the list of levels. \example samples.f90 How to create a new message from a samples. \example grib_clone.f90 How to clone a message. -\example copy_message.f90 How to copy a message in memory and create a new message. +\example grib_copy_message.f90 How to copy a message in memory and create a new message. \example grib_keys_iterator.f90 How to get the names of all the keys defined in a message and how to iterate through them. \example grib_precision.f90 How to control precision when coding a grib field. diff --git a/doxygen/grib_examples.dox b/doxygen/grib_examples.dox index 10151d3cb..4b04119a2 100644 --- a/doxygen/grib_examples.dox +++ b/doxygen/grib_examples.dox @@ -31,7 +31,7 @@ that can be taken as a starting point to write more complex programs.\n - \ref grib_set_pv.f90 "grib_set_pv.f90" how to set the list of levels. - \ref samples.f90 "samples.f90" how to create a new message from a template. - \ref grib_clone.f90 "grib_clone.f90" how to clone a message. -- \ref copy_message.f90 "copy_message.f90" how to copy a message in memory and create a new message. +- \ref grib_copy_message.f90 "grib_copy_message.f90" how to copy a message in memory and create a new message. - \ref grib_keys_iterator.f90 "grib_keys_iterator.f90" how to get the names of all the keys defined in a message and how to iterate through them. - \ref grib_precision.f90 "grib_precision.f90" how to control precision when coding a grib field. diff --git a/doxygen/make_dox.sh b/doxygen/make_dox.sh index 273a040bb..0337ecd77 100755 --- a/doxygen/make_dox.sh +++ b/doxygen/make_dox.sh @@ -33,11 +33,11 @@ bufr_get_keys grib_index grib_get_keys grib_clone +grib_copy_message count_messages samples set_missing " -# Add later copy_message -> grib_copy_message for fn in $fnames; do perl -p -i -e "s|$fn\.f90|$fn.f90|" $F90_file diff --git a/examples/F90/CMakeLists.txt b/examples/F90/CMakeLists.txt index 29ba0beb1..d9cdbf892 100644 --- a/examples/F90/CMakeLists.txt +++ b/examples/F90/CMakeLists.txt @@ -9,7 +9,7 @@ execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_S ################################################ list( APPEND tests grib_index - copy_message + grib_copy_message bufr_copy_message grib_get_keys get_data diff --git a/examples/F90/Makefile.am b/examples/F90/Makefile.am index c83dd958b..d82b8c941 100644 --- a/examples/F90/Makefile.am +++ b/examples/F90/Makefile.am @@ -1,7 +1,7 @@ AM_CFLAGS = @WARN_PEDANTIC@ @WERROR@ @FORCE_32_CFLAGS@ -TESTS = copy_message.sh grib_get_keys.sh get_data.sh get_pl.sh get_pv.sh grib_keys_iterator.sh \ +TESTS = grib_copy_message.sh grib_get_keys.sh get_data.sh get_pl.sh get_pv.sh grib_keys_iterator.sh \ grib_nearest.sh grib_precision.sh grib_multi_write.sh grib_multi.sh \ grib_print_data.sh grib_set_keys.sh \ grib_set_bitmap.sh set_missing.sh grib_set_pv.sh samples.sh grib_count_messages.sh \ @@ -15,7 +15,7 @@ TESTS = copy_message.sh grib_get_keys.sh get_data.sh get_pl.sh get_pv.sh grib_ke bufr_read_tropical_cyclone.sh bufr_read_scatterometer.sh noinst_PROGRAMS = eccodes_f_grib_index \ - eccodes_f_copy_message \ + eccodes_f_grib_copy_message \ eccodes_f_grib_get_keys \ eccodes_f_get_data \ eccodes_f_get_pl \ @@ -57,7 +57,7 @@ noinst_PROGRAMS = eccodes_f_grib_index \ eccodes_f_bufr_read_scatterometer eccodes_f_grib_index_SOURCES=grib_index.f90 -eccodes_f_copy_message_SOURCES=copy_message.f90 +eccodes_f_grib_copy_message_SOURCES=grib_copy_message.f90 eccodes_f_grib_get_keys_SOURCES=grib_get_keys.f90 eccodes_f_get_data_SOURCES=get_data.f90 eccodes_f_get_pl_SOURCES=get_pl.f90 diff --git a/examples/F90/copy_message.f90 b/examples/F90/grib_copy_message.f90 similarity index 100% rename from examples/F90/copy_message.f90 rename to examples/F90/grib_copy_message.f90 diff --git a/examples/F90/copy_message.sh b/examples/F90/grib_copy_message.sh similarity index 90% rename from examples/F90/copy_message.sh rename to examples/F90/grib_copy_message.sh index a924517f7..b98c5056d 100755 --- a/examples/F90/copy_message.sh +++ b/examples/F90/grib_copy_message.sh @@ -12,7 +12,7 @@ INPUT="../../data/constant_field.grib1" OUTPUT=out.copy.grib1 -${examples_dir}eccodes_f_copy_message > /dev/null +${examples_dir}eccodes_f_grib_copy_message > /dev/null ${tools_dir}/grib_compare -b centre $INPUT $OUTPUT rm -f $OUTPUT diff --git a/fortran/eccodes_f90_head.f90 b/fortran/eccodes_f90_head.f90 index 52449c22e..79a45b265 100644 --- a/fortran/eccodes_f90_head.f90 +++ b/fortran/eccodes_f90_head.f90 @@ -35,7 +35,7 @@ module eccodes !> gathered with @ref codes_get_error_string. !> !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param id ID of the message loaded in memory !> @param message array containing the coded message diff --git a/fortran/eccodes_f90_tail.f90 b/fortran/eccodes_f90_tail.f90 index 9df0095e5..2da5d3d11 100644 --- a/fortran/eccodes_f90_tail.f90 +++ b/fortran/eccodes_f90_tail.f90 @@ -1019,7 +1019,7 @@ end subroutine codes_bufr_new_from_file !> exit with an error message.\n Otherwise the error message can be !> gathered with @ref codes_get_error_string. !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param msgid id of the message loaded in memory !> @param message character array containing the coded message @@ -1043,7 +1043,7 @@ end subroutine codes_new_from_message_char !> gathered with @ref codes_get_error_string. !> !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param msgid id of the message loaded in memory !> @param message integer array containing the coded message diff --git a/fortran/grib_f90_head.f90 b/fortran/grib_f90_head.f90 index a56af1baf..1d2a791ff 100644 --- a/fortran/grib_f90_head.f90 +++ b/fortran/grib_f90_head.f90 @@ -33,7 +33,7 @@ module grib_api !> gathered with @ref grib_get_error_string. !> !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param gribid id of the grib loaded in memory !> @param message array containing the coded message diff --git a/fortran/grib_f90_tail.f90 b/fortran/grib_f90_tail.f90 index 1866a3cc0..93fa617c6 100644 --- a/fortran/grib_f90_tail.f90 +++ b/fortran/grib_f90_tail.f90 @@ -1349,7 +1349,7 @@ !> exit with an error message.\n Otherwise the error message can be !> gathered with @ref grib_get_error_string. !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param gribid id of the grib loaded in memory !> @param message character array containing the coded message @@ -1382,7 +1382,7 @@ !> gathered with @ref grib_get_error_string. !> !> - !> \b Examples: \ref copy_message.f90 "copy_message.f90" + !> \b Examples: \ref grib_copy_message.f90 "grib_copy_message.f90" !> !> @param gribid id of the grib loaded in memory !> @param message integer array containing the coded message