Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
Spectral element methods test/benchmark. More...
Functions | |
int | spectral (int n, World &dw) |
computes the following kernel of the spectral element method Given u, D, and diagonal matrices G_{xy} for x,y in [1,3], let E_1 = I x I x D, E_2 = I x D x I, E_3 = D x I x I [E_1^T, E_2^t, E_3^T] * [G_{11}, G_{12}, G_{13}] * [E_1] * u [G_{21}, G_{22}, G_{23}] [E_2] [G_{31}, G_{32}, G_{33}] [E_3] More... | |
char * | getCmdOption (char **begin, char **end, const std::string &option) |
int | main (int argc, char **argv) |
Spectral element methods test/benchmark.
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
Definition at line 85 of file spectral_element.cxx.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 96 of file spectral_element.cxx.
References getCmdOption(), ctf.core::np(), ctf.core::rank(), and spectral().
int spectral | ( | int | n, |
World & | dw | ||
) |
computes the following kernel of the spectral element method Given u, D, and diagonal matrices G_{xy} for x,y in [1,3], let E_1 = I x I x D, E_2 = I x D x I, E_3 = D x I x I [E_1^T, E_2^t, E_3^T] * [G_{11}, G_{12}, G_{13}] * [E_1] * u [G_{21}, G_{22}, G_{23}] [E_2] [G_{31}, G_{32}, G_{33}] [E_3]
Definition at line 18 of file spectral_element.cxx.
References ctf.core::a, ctf.core::b, CTF::Tensor< dtype >::fill_random(), CTF::Tensor< dtype >::norm2(), CTF::World::np, CTF::World::rank, and ctf.core::w.
Referenced by main().