(git:e70887f)
Loading...
Searching...
No Matches
grid_unittest.c File Reference
#include "../mpiwrap/cp_mpi.h"
#include "../offload/offload_library.h"
#include "../offload/offload_mempool.h"
#include "common/grid_library.h"
#include "cpu/grid_cpu_collocate.h"
#include "cpu/grid_cpu_integrate.h"
#include "grid_replay.h"
#include "ref/grid_ref_collocate.h"
#include "ref/grid_ref_integrate.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

static void print_func (const char *msg, int msglen, int output_unit)
 Wrapper for printf, passed to grid_library_print_stats.
static int run_test (const char cp2k_root_dir[], const char task_file[])
 Unit test for the grid code.
static int run_sheared_case (const double dh[3][3], const double ra[3], const double radius, const double zeta, const bool compare_ref)
 Regression tests for general-cell bounds on strongly sheared cells.
static int run_sheared_tests (void)
int main (int argc, char *argv[])

Function Documentation

◆ print_func()

void print_func ( const char * msg,
int msglen,
int output_unit )
static

Wrapper for printf, passed to grid_library_print_stats.

Author
Ole Schuett

Definition at line 26 of file grid_unittest.c.

◆ run_test()

int run_test ( const char cp2k_root_dir[],
const char task_file[] )
static

Unit test for the grid code.

Author
Ole Schuett

Definition at line 37 of file grid_unittest.c.

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

◆ run_sheared_case()

int run_sheared_case ( const double dh[3][3],
const double ra[3],
const double radius,
const double zeta,
const bool compare_ref )
static

Regression tests for general-cell bounds on strongly sheared cells.

Definition at line 70 of file grid_unittest.c.

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

◆ run_sheared_tests()

int run_sheared_tests ( void )
static

Definition at line 140 of file grid_unittest.c.

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

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 169 of file grid_unittest.c.

Here is the call graph for this function: