UCFD_SPARSE  v1.0
Documentation
Loading...
Searching...
No Matches
mpi3d.c File Reference

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"
Include dependency graph for mpi3d.c:

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)
 

Detailed Description

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

Author
Date
July 2024
Version
1.0
Copyright
Copyright (c) 2024, Namhyoung Kim and Jin Seok Park, Inha University, All rights reserved.
License
This project is release under the terms of the MIT License (see LICENSE file).

Definition in file mpi3d.c.

Macro Definition Documentation

◆ ncellface

#define ncellface   6

Definition at line 33 of file mpi3d.c.

◆ ndims

#define ndims   3

Definition at line 32 of file mpi3d.c.

◆ nvars

#define nvars   5

Definition at line 31 of file mpi3d.c.

◆ root

#define root   0

Definition at line 34 of file mpi3d.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 39 of file mpi3d.c.

Here is the call graph for this function:

◆ run()

double run ( int  rank,
int *  params 
)

Definition at line 103 of file mpi3d.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_output()

void write_output ( int  nprocs,
int *  params,
double *  times 
)

Write output file as txt format.

Definition at line 228 of file mpi3d.c.

Here is the caller graph for this function: