diff options
| -rw-r--r-- | examples/planetary_3d/.nix/derivation.nix | 38 | ||||
| -rw-r--r-- | examples/planetary_3d/planetary_3d.cpp | 33 |
2 files changed, 0 insertions, 71 deletions
diff --git a/examples/planetary_3d/.nix/derivation.nix b/examples/planetary_3d/.nix/derivation.nix deleted file mode 100644 index f45815d..0000000 --- a/examples/planetary_3d/.nix/derivation.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ lib -, stdenv -, scons -, clang-tools -, forstio -, pname -, version -, kel-lbm -}: - -stdenv.mkDerivation { - pname = pname + "-examples-" + "planetary_3d"; - inherit version; - src = ./..; - - nativeBuildInputs = [ - scons - clang-tools - ]; - - buildInputs = [ - forstio.core - forstio.async - forstio.io - forstio.io_codec - forstio.codec - forstio.codec-unit - forstio.codec-json - forstio.remote - forstio.remote-filesystem - forstio.remote-io - kel-lbm - ]; - - preferLocalBuild = true; - - outputs = [ "out" "dev" ]; -} diff --git a/examples/planetary_3d/planetary_3d.cpp b/examples/planetary_3d/planetary_3d.cpp deleted file mode 100644 index 990652a..0000000 --- a/examples/planetary_3d/planetary_3d.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include <forstio/error.hpp> -#include <iostream> - -namespace kel { -namespace sch { -using namespace saw::schema; -using KelConfig = Struct< - Member<String,"resolution"> ->; -} - -saw::error_or<void> real_main(int argc, char** argv){ - return saw::make_void(); -} -} - -int main(int argc, char** argv){ - auto eov = kel::kel_main(argc, argv); - if(eov.is_error()){ - auto& err = eov.get_error(); - auto err_msg = err.get_message(); - std::cerr<<"[Error]: "<<err.get_category(); - - if(not err_msg.empty()){ - std::cerr<<" - "<<err_msg; - } - std::cerr<<std::endl; - - return err.get_id(); - } - - return 0; -} |
