-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWork.h
More file actions
67 lines (46 loc) · 1.49 KB
/
Work.h
File metadata and controls
67 lines (46 loc) · 1.49 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef WORK_H
#define WORK_H
#include <vector>
#include <omp.h>
#include <mpi.h>
#include <stdlib.h>
#include "CompareWorkLink.h"
#include "GatherFiles.h"
#include "ReadVariables.h"
#include "Structures.h"
#include "CFitting.h"
class Work{
public:
Work();
~Work() {;}
void setVariables(ReadVariables re);
void setProcessors(const int p);
void setSeed(int s)
{ seed = s; }
void setJob(std::string job)
{ function = job; }
void run();
void create();
void fit();
//bool search();
//bool search_MPI(const int numprocs);
void search_MPI();
void slave_MPI(const std::string filename1, const std::string filename2, const int myrank,
const bool bBoth, const bool bSearch, const bool bOpt, const bool bGlobal);
private:
int seed;
int myrank;
// Setup output files
std::string output_log; // Output filename //
std::string tmpdir;
std::string pwd;
std::vector<std::string> output_content; // Output log //
std::string function;
ReadVariables red;
//std::vector<Information> preloadImages(std::vector<std::string> f);
void printErrorDifferentSizes(const std::string &filename1, const int &f1count, const std::string &filename2, const int &f2count);
void printFileReadError(const std::string &fn);
void printFileLoaded(const std::string &fn);
void printComparisons(const std::string &filename1, const std::string &filename2, const int &c, const int &cc, RotationPoint min);
};
#endif