COMP: add forward declaration for UPstream::File

BUG: typo in UPstream::Window::put() code
This commit is contained in:
Mark Olesen
2025-08-11 16:01:48 +02:00
parent 233da9adaa
commit 83107a192c
2 changed files with 8 additions and 5 deletions

View File

@ -185,6 +185,9 @@ public:
//- Wrapper for MPI_Comm
class Communicator; // Forward Declaration
//- Wrapper for MPI_File routines
class File; // Forward Declaration
//- Wrapper for MPI_Request
class Request; // Forward Declaration

View File

@ -246,7 +246,7 @@ bool Foam::UPstream::Window::put
else
{
// Use element or component type (or byte-wise) for data type
return this-put_data
return this->put_data
(
buffer, // The data or cmpt pointer
UPstream_dataType<Type>::size(count),
@ -354,10 +354,10 @@ bool Foam::UPstream::Window::get
{
return this->get
(
buffer.data(), buffer.size(),
fromProcNo,
target_disp
);
buffer.data(), buffer.size(),
fromProcNo,
target_disp
);
}