Example for LU-SGS method using MPI & SMP. More...
#include <math.h>#include <time.h>#include <stdio.h>#include <stdlib.h>#include <mpi.h>#include <omp.h>#include "pbutils.h"#include "readinput.h"#include "arrays.h"#include "coloredlusgs.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 nthreads, int *params, double *times) |
| int | main (int argc, char **argv) |
Example for LU-SGS method using MPI & SMP.
======================================================================================================================
This file is an executable example file for Colored LU-SGS method with MPI parallelism. Basic hexahedral gird is used, and
Definition in file omp3d.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| double run | ( | int | rank, |
| int * | params | ||
| ) |