readme update
This commit is contained in:
parent
4c2dfa8e2b
commit
ce91a9384d
|
|
@ -11,7 +11,6 @@ interactive-track-and-trace/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Compiling
|
## 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:
|
Let the current directory be the `src` directory. Run:
|
||||||
```shell
|
```shell
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
@ -19,3 +18,7 @@ cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
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)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
find_package(netCDF REQUIRED)
|
# find_package(netCDF REQUIRED)
|
||||||
|
|
||||||
add_executable(ReadHDF5 main.cpp)
|
add_executable(ReadHDF5 main.cpp)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ int main () {
|
||||||
|
|
||||||
auto [vec, size] = get3DMat<double>(vars.find("uo")->second);
|
auto [vec, size] = get3DMat<double>(vars.find("uo")->second);
|
||||||
|
|
||||||
|
|
||||||
auto arr = std::mdspan(vec.data(), size);
|
auto arr = std::mdspan(vec.data(), size);
|
||||||
|
|
||||||
print3DMatrixSlice(arr, 100);
|
print3DMatrixSlice(arr, 100);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue