StatMech
Loading...
Searching...
No Matches
SubSpace_test.cu File Reference

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)
5 {
6 if(argc != 3) {
7 std::cerr << "Usage: 1.(This) 2.(dimLoc) 3.(L)\n"
8 << "argc = " << argc << std::endl;
9 std::exit(EXIT_FAILURE);
10 }
11 int testPoint = 1;
12 int dimLoc = std::atoi(argv[1]);
13 int L = std::atoi(argv[2]);
14 {
15 ManyBodySpinSpace hTotSpace(L, dimLoc);
16 hTotSpace.computeTransEqClass();
17 ObjectOnGPU< SubSpace<ManyBodySpinSpace> > dSubSpace(hTotSpace);
18 std::cout << "Passed the test point " << testPoint++ << "\n\n\n" << std::endl;
19
21 dSubSpace2 = ObjectOnGPU< SubSpace<ManyBodySpinSpace> >(hTotSpace);
22 std::cout << "Passed the test point " << testPoint++ << "\n\n\n" << std::endl;
23
24 SubSpace<ManyBodySpinSpace> hSubSpace(hTotSpace);
25
26 ObjectOnGPU< SubSpace<ManyBodySpinSpace> > dSubSpace3(hSubSpace);
27 std::cout << "Passed the test point " << testPoint++ << "\n\n\n" << std::endl;
28 }
29 {
30 ManyBodySpinSpace hTotSpace(L, dimLoc);
31 TransSector<double> hTransSector(0, hTotSpace);
32 ObjectOnGPU< TransSector<double> > dSubSpace(hTransSector);
33 std::cout << "Passed the test point " << testPoint++ << "\n\n\n" << std::endl;
34
36 dSubSpace2 = ObjectOnGPU< TransSector<double> >(hTransSector);
37 std::cout << "Passed the test point " << testPoint++ << "\n\n\n" << std::endl;
38 }
39
40 return EXIT_SUCCESS;
41}
Definition HilbertSpace.hpp:423
Definition ObjectOnGPU.cuh:149
Definition HilbertSpace.hpp:568
Translation invariant sector of a many-body Hilbert space.
Definition TransSector.hpp:19