diff --git a/src/main_fluid_solver.cpp b/src/main_fluid_solver.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f673e4a6ffcb7c57812404d80372e4b099a5057a --- /dev/null +++ b/src/main_fluid_solver.cpp @@ -0,0 +1,39 @@ +/*********************************************************************** +* +* Copyright 2015 Max Planck Institute for Dynamics and SelfOrganization +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +* Contact: Cristian.Lalescu@ds.mpg.de +* +************************************************************************/ + +#include "fluid_solver.hpp" +#include <iostream> + +int myrank, nprocs; + +int main(int argc, char *argv[]) +{ + MPI_Init(&argc, &argv); + MPI_Comm_rank(MPI_COMM_WORLD, &myrank); + MPI_Comm_size(MPI_COMM_WORLD, &nprocs); + + fluid_solver<float> fs; + + // clean up + fftwf_mpi_cleanup(); + MPI_Finalize(); + return EXIT_SUCCESS; +} +