From cf53edc05a1d40cda8f5bc345dd7e37a0c3ba571 Mon Sep 17 00:00:00 2001 From: cianciosa Date: Tue, 14 Jan 2025 15:30:21 -0500 Subject: [PATCH] Revert playground. --- graph_playground/xplayground.cpp | 45 -------------------------------- 1 file changed, 45 deletions(-) diff --git a/graph_playground/xplayground.cpp b/graph_playground/xplayground.cpp index 6f3855d..de3868a 100644 --- a/graph_playground/xplayground.cpp +++ b/graph_playground/xplayground.cpp @@ -4,10 +4,6 @@ //------------------------------------------------------------------------------ #include "../graph_framework/jit.hpp" -#include - -#include "../graph_framework/equilibrium.hpp" - //------------------------------------------------------------------------------ /// @brief Main program of the playground. /// @@ -21,47 +17,6 @@ int main(int argc, const char * argv[]) { // Insert code here. No code should be commited to this file beyond this // template. - auto r = graph::variable (1000, "r"); - auto phi = graph::variable (1000, "\\phi"); - auto z = graph::variable (1000, "z"); - - auto eq = equilibrium::make_efit (EFIT_FILE); - - auto bvec = eq->get_magnetic_field(r*graph::cos(phi), - r*graph::sin(phi), - z); - - bvec->get_x()->to_latex(); - std::cout << "\\\\" << std::endl; - bvec->get_y()->to_latex(); - std::cout << "\\\\" << std::endl; - bvec->get_z()->to_latex(); - std::cout << "\\\\" << std::endl; - std::cout << std::endl << std::endl << std::endl; - - r->set(static_cast (1.7)); - z->set(static_cast (0.0)); - std::vector temp(1000); - for (size_t i = 0; i < 1000; i++) { - temp[i] = 2.0*std::numbers::pi_v*i/999.0; - } - phi->set(temp); - - workflow::manager work(0); - work.add_item({ - graph::variable_cast(r), - graph::variable_cast(phi), - graph::variable_cast(z) - }, { - bvec->get_x(), - bvec->get_y(), - bvec->get_z() - }, {}, "bvec_kernel"); - work.compile(); - work.run(); - for (size_t i = 0; i < 1000; i++) { - work.print(i, {r, phi, z, bvec->get_x(), bvec->get_y(), bvec->get_z()}); - } END_GPU } -- GitLab