This commit is contained in:
Lisa Pizzo 2026-01-09 13:21:08 +01:00
commit 321e250973
4 changed files with 220 additions and 0 deletions

13
Sheet7/Ex_5678/VecFuncs.h Normal file
View file

@ -0,0 +1,13 @@
#pragma once
#include <vector>
#include <mpi.h>
#include <iostream>
#include <cassert>
#include <cfloat>
void DebugVector(const std::vector<double>& xin, MPI_Comm icomm);
double par_scalar(const std::vector<double> &x, const std::vector<double> &y, const MPI_Comm &icomm);
void par_minmax(std::vector<double> &x, double &min_val, double &max_val, const MPI_Comm &icomm);