readme update
This commit is contained in:
parent
4c2dfa8e2b
commit
ce91a9384d
|
|
@ -11,7 +11,6 @@ interactive-track-and-trace/
|
|||
```
|
||||
|
||||
## Compiling
|
||||
Makes use of `mdspan` which is not supported by GCC libstdc++ at time of writing. See [compiler support](https://en.cppreference.com/w/cpp/compiler_support/23) for `mdspan`.
|
||||
Let the current directory be the `src` directory. Run:
|
||||
```shell
|
||||
mkdir build
|
||||
|
|
@ -19,3 +18,7 @@ cd build
|
|||
cmake ..
|
||||
make
|
||||
```
|
||||
|
||||
### Building with Linux
|
||||
Makes use of `mdspan` which is not supported by GCC libstdc++ at time of writing. See [compiler support](https://en.cppreference.com/w/cpp/compiler_support/23) for `mdspan`. Probably you will need to install Clang libc++.
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
find_package(netCDF REQUIRED)
|
||||
# find_package(netCDF REQUIRED)
|
||||
|
||||
add_executable(ReadHDF5 main.cpp)
|
||||
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ int main () {
|
|||
|
||||
auto [vec, size] = get3DMat<double>(vars.find("uo")->second);
|
||||
|
||||
|
||||
auto arr = std::mdspan(vec.data(), size);
|
||||
|
||||
print3DMatrixSlice(arr, 100);
|
||||
|
|
|
|||
Loading…
Reference in New Issue