readme update

This commit is contained in:
robin committed 2024-04-18 14:44:48 +02:00
1 parent 4c2dfa8e2b
commit ce91a9384d
3 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -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++.
+1 -1
View File
@@ -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)
+1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.