34 for (
int i = 0; i < IP; ++i) {
41 for (
int j = 0; j < IP; ++j) {
44 for (
int i = 0; i < 32; ++i) {
45 iwork = iwork * 2 + IB[JR];
46 IB[JR] = IB[JR] ^ IB[KR];
74 unsigned IWK[2 * IP - 1];
80 for (
int i = 0; i < IP; ++i) {
84 for (
int i = IP; i < 2 * IP - 1; ++i) {
85 IWK[i] = IWK[i - IP] ^ IWK[i - IQ];
88 for (
int i = 0; i < MU; ++i) {
95 if (M <= IP - 1)
goto continued300;
102 for (
int i = 0; i < IP; ++i) {
107 for (
int j = NB; j >= 0; --j) {
108 for (
int i = IP - 1; i >= 0; --i) {
109 C[2 * i + IB[j]] = C[i];
110 C[2 * i + 1 - IB[j]] = 0;
112 for (
int i = 2 * IP - 1; i >= IP; --i) {
113 C[i - IP] = C[i - IP] ^ C[i];
114 C[i - IQ] = C[i - IQ] ^ C[i];
118 for (
int j = 0; j < IP; ++j) {
120 for (
int i = 0; i < IP; ++i) {
121 iwork = iwork ^ (C[i] * IWK[j + i]);
134 std::ofstream outfile;
135 outfile.open(filename.c_str());
142 outfile <<
" " <<
jr <<
" " <<
kr << std::endl;
144 for (
int i = 0; i <
Np; i++) {
145 outfile <<
" " <<
w[i] << std::endl;
159 std::ifstream infile;
160 infile.open(filename.c_str());
169 for (
int i = 0; i <
Np; i++) {
void readfile(const std::string &)
void general(const char *format,...)
void delay3(const int ndelay)
Bridge::VerboseLevel m_vl
void initset(const int ndelay)
void crucial(const char *format,...)
static const double Fnorm
initialized in .cpp file.
static int broadcast(int count, double *data, int sender)
broadcast array of double from sender.
static bool is_primary()
check if the present node is primary in small communicator.
void writefile(const std::string &)
static const std::string class_name