Jacobi
Documentation for Jacobi Solver
Functions
run_test.c File Reference

Test suite for the Jacobi solver for Laplace equation. More...

#include "jacobi_functions.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
Include dependency graph for run_test.c:

Functions

double test_update_small ()
 
bool test_boundary_conditions ()
 
int main (int argc, char **argv)
 

Detailed Description

Test suite for the Jacobi solver for Laplace equation.

This file contains a series of unit test for the components of solver of the Laplace equation using Jacobi iterative method on a square grid, given the boundary conditions

Author
Giuseppe Piero Brandino

Function Documentation

◆ test_boundary_conditions()

bool test_boundary_conditions ( )

Test routine for the boundary conditions. Checks that both the input buffers in the setBoundayConditions methos have the same values on the boundary

◆ test_update_small()

double test_update_small ( )

Test routine for the update method