-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstdcpp.h
More file actions
45 lines (39 loc) · 848 Bytes
/
stdcpp.h
File metadata and controls
45 lines (39 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// stdcpp.h
// Chern number calculation
//
// Created by Dong Lin on 9/2/14.
// Copyright (c) 2014 Dong Lin. All rights reserved.
//
#ifndef tBdG_stdcpp_h
#define tBdG_stdcpp_h
#include <mpi.h>
#include <iostream>
#include <new>
#include <math.h>
#include <iomanip>
#include <fstream>
#include <assert.h>
#include <Eigen/Eigenvalues>
#include <time.h>
using namespace std;
using namespace Eigen;
using namespace MPI;
template <typename T> int sgn(T val) {
return (T(0) < val) - (val < T(0));
}
struct sPhys {
double mu;
double T;
};
struct sPara {
double t; // inverse scattering length, or bound state energy Eb in 2D
double h; // zeeman field
double v; // rashba SOC strength
};
struct sConf {
double L; // length of confinement
int NL; // number of grid
double dl; // finite difference
};
#endif