Peano
Loading...
Searching...
No Matches
test_sfc Namespace Reference

Functions

 test_cartesian_to_peano_2d_docstring_example ()
 Docstring example: (4, 2) with size=9 must map to 10.
 
 test_peano_to_cartesian_2d_docstring_example ()
 Inverse of docstring example: index 10 with size=9 must map to (4, 2).
 
 test_cartesian_to_peano_2d_size1 ()
 
 test_peano_to_cartesian_2d_size1 ()
 
 test_cartesian_to_peano_2d_bijection (size)
 Every cell maps to a unique index in [0, size²).
 
 test_peano_to_cartesian_2d_round_trip (size)
 Forward then inverse returns the original coordinates for all cells.
 
 test_cartesian_to_peano_3d_size1 ()
 
 test_peano_to_cartesian_3d_size1 ()
 
 test_cartesian_to_peano_3d_bijection (size)
 Every 3-D cell maps to a unique index in [0, size³).
 
 test_peano_to_cartesian_3d_round_trip (size)
 Forward then inverse returns the original coordinates for all 3-D cells.
 
 test_cartesian_to_peano_3d_bijection_size9 ()
 Full bijection check for size=9 (729 cells); marked slow.
 
 test_peano_to_cartesian_3d_round_trip_size9 ()
 Round-trip check for size=9 (729 cells); marked slow.
 
 _peano_zfor3_tables (dimensions)
 Read the lookup tables of zfor3 from src/peano4/utils/Loop.h.
 
 test_children_order_matches_peano_zfor3 (dimensions)
 The order of the 3^d children replicates peano4::utils::zfor3 for all loop directions.
 
 test_curve_2d_is_continuous (size)
 Consecutive cells along the curve share a face, i.e.
 
 test_curve_3d_is_continuous (size)
 Consecutive cells along the curve share a face, i.e.
 

Function Documentation

◆ _peano_zfor3_tables()

test_sfc._peano_zfor3_tables (   dimensions)
protected

Read the lookup tables of zfor3 from src/peano4/utils/Loop.h.

Definition at line 144 of file test_sfc.py.

Referenced by test_children_order_matches_peano_zfor3().

Here is the caller graph for this function:

◆ test_cartesian_to_peano_2d_bijection()

test_sfc.test_cartesian_to_peano_2d_bijection (   size)

Every cell maps to a unique index in [0, size²).

Definition at line 42 of file test_sfc.py.

◆ test_cartesian_to_peano_2d_docstring_example()

test_sfc.test_cartesian_to_peano_2d_docstring_example ( )

Docstring example: (4, 2) with size=9 must map to 10.

Definition at line 15 of file test_sfc.py.

◆ test_cartesian_to_peano_2d_size1()

test_sfc.test_cartesian_to_peano_2d_size1 ( )

Definition at line 29 of file test_sfc.py.

◆ test_cartesian_to_peano_3d_bijection()

test_sfc.test_cartesian_to_peano_3d_bijection (   size)

Every 3-D cell maps to a unique index in [0, size³).

Definition at line 82 of file test_sfc.py.

◆ test_cartesian_to_peano_3d_bijection_size9()

test_sfc.test_cartesian_to_peano_3d_bijection_size9 ( )

Full bijection check for size=9 (729 cells); marked slow.

Definition at line 109 of file test_sfc.py.

◆ test_cartesian_to_peano_3d_size1()

test_sfc.test_cartesian_to_peano_3d_size1 ( )

Definition at line 69 of file test_sfc.py.

◆ test_children_order_matches_peano_zfor3()

test_sfc.test_children_order_matches_peano_zfor3 (   dimensions)

The order of the 3^d children replicates peano4::utils::zfor3 for all loop directions.

Definition at line 164 of file test_sfc.py.

References _peano_zfor3_tables().

Here is the call graph for this function:

◆ test_curve_2d_is_continuous()

test_sfc.test_curve_2d_is_continuous (   size)

Consecutive cells along the curve share a face, i.e.

the curve has no jumps.

Definition at line 172 of file test_sfc.py.

◆ test_curve_3d_is_continuous()

test_sfc.test_curve_3d_is_continuous (   size)

Consecutive cells along the curve share a face, i.e.

the curve has no jumps.

Definition at line 180 of file test_sfc.py.

◆ test_peano_to_cartesian_2d_docstring_example()

test_sfc.test_peano_to_cartesian_2d_docstring_example ( )

Inverse of docstring example: index 10 with size=9 must map to (4, 2).

Definition at line 20 of file test_sfc.py.

◆ test_peano_to_cartesian_2d_round_trip()

test_sfc.test_peano_to_cartesian_2d_round_trip (   size)

Forward then inverse returns the original coordinates for all cells.

Definition at line 55 of file test_sfc.py.

◆ test_peano_to_cartesian_2d_size1()

test_sfc.test_peano_to_cartesian_2d_size1 ( )

Definition at line 33 of file test_sfc.py.

◆ test_peano_to_cartesian_3d_round_trip()

test_sfc.test_peano_to_cartesian_3d_round_trip (   size)

Forward then inverse returns the original coordinates for all 3-D cells.

Definition at line 96 of file test_sfc.py.

◆ test_peano_to_cartesian_3d_round_trip_size9()

test_sfc.test_peano_to_cartesian_3d_round_trip_size9 ( )

Round-trip check for size=9 (729 cells); marked slow.

Definition at line 124 of file test_sfc.py.

◆ test_peano_to_cartesian_3d_size1()

test_sfc.test_peano_to_cartesian_3d_size1 ( )

Definition at line 73 of file test_sfc.py.