mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
still need to modify datareader to use netcdf on only one thread
This commit is contained in:
1 parent
a7ad248c38
commit
7b3c87c656
11 files changed
+487
-77
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef DATAREADER_H
|
||||
#define DATAREADER_H
|
||||
|
||||
#include <string>
|
||||
#include <experimental/propagate_const>
|
||||
#include <memory>
|
||||
|
||||
#include "filepathmanager.h"
|
||||
|
||||
|
||||
class DataReader {
|
||||
public:
|
||||
DataReader(const std::string &path, std::string variableName);
|
||||
size_t fileLength(size_t fileIndex);
|
||||
|
||||
template <typename T>
|
||||
void loadFile(T* dataOut, size_t fileIndex);
|
||||
|
||||
~DataReader();
|
||||
private:
|
||||
FilePathManager filePathManager;
|
||||
std::string variableName;
|
||||
};
|
||||
|
||||
|
||||
#endif //DATAREADER_H
|
||||