Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Nov 4, 2024
1 parent a04944e commit 2ea2815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_pyfans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
cmake .. -DFANS_LIBRARY_FOR_MICRO_MANAGER=ON
make
- name: Run micro_mesh.py
- name: Run FANS as a library via a Python script
run: |
cd test/test_pyfans
python3 run_fans_as_library.py
11 changes: 2 additions & 9 deletions pyfans/micro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "general.h"
#include "matmodel.h"
#include "solver.h"
#include "solverFP.h"
#include "solverCG.h"

namespace py = pybind11;

Expand All @@ -24,13 +22,8 @@ class MicroSimulation {
py::dict solve(py::dict macro_write_data, double dt);

private:
int _sim_id;
std::vector<double> g0;
double _state;
char *input_temp_path;
char *in_place_temp_path;
char *out_temp_path;
Reader reader;
int _sim_id;
Reader reader;
// Hardcoding mechanical models because these definitions need information from the input file.
Matmodel<3> *matmodel;
Solver<3> *solver;
Expand Down

0 comments on commit 2ea2815

Please sign in to comment.