MPI_mgparc
Functions
savevekp.cpp File Reference
#include <iostream>
#include <fstream>
#include <string>
#include "header.h"

Functions

void SaveVectorP (const int myid, const string &name, const double u[], const int nx, const int ny, const double &xl, const double &xr, const double &yb, const double &yt)
 

Function Documentation

void SaveVectorP ( const int  myid,
const string &  name,
const double  u[],
const int  nx,
const int  ny,
const double &  xl,
const double &  xr,
const double &  yb,
const double &  yt 
)

Stores the values of vector u of subdomain myid into a file. The file stores rowise the x- and y- coordinates together with the value from u . The domain [xl, xr] x [yb, yt] is discretized into nx x ny intervals.

Parameters
[in]myidmy rank
[in]namebasename of file name (file name will be extended by the rank number)
[in]ulocal vector
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in]xlx-coordinate of left boundary
[in]xrx-coordinate of right boundary
[in]yby-coordinate of lower boundary
[in]yty-coordinate of upper boundary