Skip to content
Snippets Groups Projects
Commit 54ca9786 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add basic test for fluid solver

parent fc2bc775
Branches
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "base.hpp" #include "base.hpp"
#include "fluid_solver.hpp" #include "fluid_solver.hpp"
#include <iostream> #include <iostream>
#include <fftw3-mpi.h>
int myrank, nprocs; int myrank, nprocs;
...@@ -34,6 +35,9 @@ int main(int argc, char *argv[]) ...@@ -34,6 +35,9 @@ int main(int argc, char *argv[])
fs = new fluid_solver<float>(32, 32, 32); fs = new fluid_solver<float>(32, 32, 32);
DEBUG_MSG("fluid_solver object created\n"); DEBUG_MSG("fluid_solver object created\n");
fftwf_execute(*(fftwf_plan*)fs->c2r_vorticity);
fftwf_execute(*(fftwf_plan*)fs->r2c_vorticity);
delete fs; delete fs;
DEBUG_MSG("fluid_solver object deleted\n"); DEBUG_MSG("fluid_solver object deleted\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment