Example for LU-SGS method using MPI parallelism. More...
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include "pbutils.h"
#include "readinput.h"
#include "arrays.h"
#include "lusgs.h"
Go to the source code of this file.
Macros | |
#define | nvars 5 |
#define | ndims 3 |
#define | ncellface 6 |
#define | root 0 |
Functions | |
double | run (int rank, int *params) |
void | write_output (int nprocs, int *params, double *times) |
Write output file as txt format. More... | |
int | main (int argc, char **argv) |
Example for LU-SGS method using MPI parallelism.
======================================================================================================================
This file is an executable example file for LU-SGS method with MPI parallelism. Basic hexahedral gird is used, and
Definition in file mpi3d.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
double run | ( | int | rank, |
int * | params | ||
) |