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

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"
Include dependency graph for omp3d.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 nthreads, int *params, double *times)
 
int main (int argc, char **argv)
 

Detailed Description

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

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 omp3d.c.

Macro Definition Documentation

◆ ncellface

#define ncellface   6

Definition at line 34 of file omp3d.c.

◆ ndims

#define ndims   3

Definition at line 33 of file omp3d.c.

◆ nvars

#define nvars   5

Definition at line 32 of file omp3d.c.

◆ root

#define root   0

Definition at line 35 of file omp3d.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 41 of file omp3d.c.

Here is the call graph for this function:

◆ run()

double run ( int  rank,
int *  params 
)

Definition at line 112 of file omp3d.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  nthreads,
int *  params,
double *  times 
)

Definition at line 239 of file omp3d.c.

Here is the caller graph for this function: