RadCluster
Graph-based cluster dynamics for irradiated materials
Loading...
Searching...
No Matches
Functions | Variables
test_lapack_omp_small Namespace Reference

Functions

 make_sim ()
 
 run_case (prec_type)
 

Variables

 MODULE_ROOT = Path(__file__).resolve().parent.parent.parent
 
 REPO_ROOT = MODULE_ROOT.parent
 
int I = 1000
 
int V = 1000
 
dict OVERRIDES
 
 flush
 
 j = run_case(0)
 
 w = run_case(1)
 

Detailed Description

test_lapack_omp_small.py — Quick verification of LAPACK + OMP auto-pick.

Small problem (I=V=1000, N_eq~2002), short time span (t_end=1e-2).
Runs once with Jacobi, once with Woodbury, using the already-built
solver.exe.  Does NOT rebuild — uses whatever's in build/Release/.

Verifies:
  1. Auto-thread picker fires (expect "auto-selected 4 threads ...")
  2. Woodbury works (no "binary built without LAPACK" fallback)
  3. Speedup of Woodbury over Jacobi

Function Documentation

◆ make_sim()

test_lapack_omp_small.make_sim ( )

Definition at line 53 of file test_lapack_omp_small.py.

◆ run_case()

test_lapack_omp_small.run_case (   prec_type)

Definition at line 81 of file test_lapack_omp_small.py.

Variable Documentation

◆ flush

test_lapack_omp_small.flush

Definition at line 111 of file test_lapack_omp_small.py.

◆ I

int test_lapack_omp_small.I = 1000

Definition at line 39 of file test_lapack_omp_small.py.

◆ j

test_lapack_omp_small.j = run_case(0)

Definition at line 114 of file test_lapack_omp_small.py.

◆ MODULE_ROOT

test_lapack_omp_small.MODULE_ROOT = Path(__file__).resolve().parent.parent.parent

Definition at line 23 of file test_lapack_omp_small.py.

◆ OVERRIDES

dict test_lapack_omp_small.OVERRIDES
Initial value:
1= {
2 'eta': 0.3, 'f_cl_i': 0.2, 'f_cl_v': 0.15,
3 'E_m_1D': 0.4, 'i_mobile': 1, 'L_hat': 5,
4 'c_C': 0.001, 'E_b_C_SIA': 0.65,
5 'rho_d': 1e15, 'Z_i': 1.08, 'Z_ii': 1.01,
6 'shape_function': 'linear',
7 'i_discrete': I, 'v_discrete': V,
8 'I_bin': 0, 'V_bin': 0,
9}

Definition at line 42 of file test_lapack_omp_small.py.

◆ REPO_ROOT

test_lapack_omp_small.REPO_ROOT = MODULE_ROOT.parent

Definition at line 24 of file test_lapack_omp_small.py.

◆ V

int test_lapack_omp_small.V = 1000

Definition at line 40 of file test_lapack_omp_small.py.

◆ w

test_lapack_omp_small.w = run_case(1)

Definition at line 115 of file test_lapack_omp_small.py.