Xmipp  v3.23.11-Nereus
mpi_reconstruct_fourier_accel.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Jose Roman Bilbao (jrbcast@ace.ual.es)
4  * Roberto Marabini (roberto@cnb.csic.es)
5  * Vahid Abrishami (vabrishami@cnb.csic.es)
6  * David Strelak (davidstrelak@gmail.com)
7  *
8  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23  * 02111-1307 USA
24  *
25  * All comments concerning this program package may be sent to the
26  * e-mail address 'xmipp@cnb.csic.es'
27  ***************************************************************************/
28 #ifndef MPI_RECONSTRUCT_FOURIER_ACCEL_H_
29 #define MPI_RECONSTRUCT_FOURIER_ACCEL_H_
30 
31 #include "xmipp_mpi.h"
32 #include <core/args.h>
34 #include <data/projection.h>
35 #include <cstring>
36 #include <cstdlib>
37 #include <core/xmipp_funcs.h>
38 #include <core/matrix2d.h>
39 #include <sys/time.h>
40 #include <iostream>
41 #include <sstream>
42 #include <fstream>
43 #include <iomanip>
44 
45 #define TAG_WORKFORWORKER 0
46 #define TAG_STOP 1
47 #define TAG_TRANSFER 2
48 #define TAG_FREEWORKER 3
49 #define TAG_SETVERBOSE 5
50 
51 //TODO (MARIANA) Please give more documentation and in a good structure e.g. @name
52 
56 
58 {
59 public:
62 
63  /* constructor ------------------------------------------------------- */
64  ProgMPIRecFourierAccel(int argc, char *argv[]);
65 
66  /* constructor providing an MpiNode
67  * this is useful for using this programs from others
68  */
69  ProgMPIRecFourierAccel(const std::shared_ptr<MpiNode> &node);
70 
72  void read(int argc, char** argv);
73 
74 private:
76  int mpi_job_size;
77 
79  void readParams();
80 
82  void defineParams();
83 
85  void preRun();
86 
88  void run();
89 
90 
91 };
93 //end of class MPI reconstruct fourier
94 
95 #endif /* MPI_RECONSTRUCT_FOURIER_ACCEL_H_ */
int argc
Original command line arguments.
Definition: xmipp_program.h:86
void read(int argc, char **argv)
std::shared_ptr< MpiNode > node
Definition: xmipp_mpi.h:164
const char ** argv
Definition: xmipp_program.h:87