Xmipp  v3.23.11-Nereus
mpi_volumeset_align.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Mohamad Harastani mohamad.harastani@upmc.fr
4  * Slavica Jonic slavica.jonic@upmc.fr
5  * Carlos Oscar Sanchez Sorzano coss.eps@ceu.es
6  *
7  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
8  * Lab. de Bioingenieria, Univ. San Pablo CEU
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.uam.es'
27  ***************************************************************************/
28 
29 #include <memory>
30 #include "parallel/xmipp_mpi.h"
32 
36 
38 {
39 private:
40  std::shared_ptr<MpiNode> node;
41  std::shared_ptr<MpiTaskDistributor> distributor;
42  std::shared_ptr<MpiFileMutex> fileMutex;
43  std::vector<size_t> imgsId;
44 
45  // main body
46  void createWorkFiles() override;
47 
48  //Only master do starting progress bar stuff
49  void startProcessing();
50 
51  //Only master show progress
52  void showProgress();
53 
54  bool getImageToProcess(size_t &objId, size_t &objIndex) override;
55 
56  void finishProcessing();
57 
58  void writeVolumeParameters(const FileName &fnImg);
59 
60 public:
61  // Redefine read to initialize MPI environment
62  //void read(int arg1, char **arg2);
63  void read(int argc, char ** argv, bool reportErrors = true) override;
64 }
66 ;//end of class MpiProgVolumeSetAlign
void read(int argc, char **argv, bool reportErrors=true) override
int argc
Original command line arguments.
Definition: xmipp_program.h:86
const char ** argv
Definition: xmipp_program.h:87