ECC-2074: Fortran: get_message, new_from_message without memcpy#279
ECC-2074: Fortran: get_message, new_from_message without memcpy#279shahramn merged 7 commits intoecmwf:developfrom
Conversation
|
Compilation fails. Can you please take a look |
|
Still failing: |
|
Sorry for the compilation failure! I am correcting and testing it locally. If it is successful, I'll notify you. |
…nd size_t of grib_get_message
|
My tests locally were successful and I noticed that I had only support for size_t message length and therefore added support for int as well. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #279 +/- ##
===========================================
- Coverage 87.71% 87.70% -0.01%
===========================================
Files 843 844 +1
Lines 62339 62409 +70
Branches 11126 11133 +7
===========================================
+ Hits 54680 54738 +58
- Misses 7659 7671 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you. Could you please add a test too? similar to: |
|
Thank you for your contribution 🥇 |
|
This has now been released as part of ecCodes v2.42.0 |
Proposed extension of the fortran grib api:
2 methods which are already included in the C interface and used to directly access the coded message in main memory
these methods are for example practical for sending/receiving coded grib messages with MPI
returns a fortran pointer to the coded message (character) of a grib_handle
creates a new grib_handle with a data buffer pointing to a provided coded message (character or integer)