Skip to content
Snippets Groups Projects
Commit 3d0ca5ca authored by wgodoy's avatar wgodoy
Browse files

Fixed bugs in BP1Writer, Transport.h and hello dataman Makefile

Prevented from compiling and running hello examples
Makefile in dataman needed to link with libpthread -lpthread
parent f8498dee
No related branches found
No related tags found
1 merge request!8Integrate groupless
......@@ -24,10 +24,10 @@ CFLAGS=-Wall -O0 -g -Wpedantic -std=c++11
all: mpi
mpi: $(ADIOS_LIB) $(ADIOS_HFiles)
$(MPICC) $(CFLAGS) $(ADIOS_INCLUDE) -DHAVE_MPI $(BASE_NAME).cpp -o $(BASE_NAME)_mpi $(ADIOS_LIB)
$(MPICC) $(CFLAGS) $(ADIOS_INCLUDE) -DHAVE_MPI $(BASE_NAME).cpp -o $(BASE_NAME)_mpi $(ADIOS_LIB) -lpthread
nompi: $(ADIOS_NOMPI_LIB) $(NoMPI_HFiles)
$(CC) $(CFLAGS) $(ADIOS_INCLUDE) $(BASE_NAME).cpp -o $(BASE_NAME)_nompi $(ADIOS_NOMPI_LIB)
$(CC) $(CFLAGS) $(ADIOS_INCLUDE) $(BASE_NAME).cpp -o $(BASE_NAME)_nompi $(ADIOS_NOMPI_LIB) -lpthread
clean:
rm *_mpi; rm *_nompi
......
......@@ -83,11 +83,6 @@ public:
protected:
const bool m_DebugMode = false; ///< if true: additional checks and exceptions
/**
* Initialize particular derived transport class members
* @param arguments particular transport arguments
*/
virtual void Init( const std::vector<std::string>& arguments );
};
......
......@@ -34,8 +34,8 @@ void BP1Writer::Close( const BP1MetadataSet& metadataSet, Capsule& capsule, Tran
}
//PRIVATE FUNCTIONS
void WriteNameRecord( const std::string& name, const std::uint16_t& length,
std::vector<char*>& buffers, std::vector<std::size_t>& positions )
void BP1Writer::WriteNameRecord( const std::string& name, const std::uint16_t& length,
std::vector<char*>& buffers, std::vector<std::size_t>& positions )
{
MemcpyToBuffers( buffers, positions, &length, 2 );
MemcpyToBuffers( buffers, positions, name.c_str( ), length );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment