00001 /* -*- mode: c++ -*- */ 00002 //# SerialPartitionMixin.h: Parallel imaging framework data partitioning for 00003 //# serial imaging 00004 //# Copyright (C) 2016 00005 //# Associated Universities, Inc. Washington DC, USA. 00006 //# 00007 //# This library is free software; you can redistribute it and/or modify it 00008 //# under the terms of the GNU Library General Public License as published by 00009 //# the Free Software Foundation; either version 2 of the License, or (at your 00010 //# option) any later version. 00011 //# 00012 //# This library is distributed in the hope that it will be useful, but WITHOUT 00013 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00015 //# License for more details. 00016 //# 00017 //# You should have received a copy of the GNU Library General Public License 00018 //# along with this library; if not, write to the Free Software Foundation, 00019 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00020 //# 00021 //# Correspondence concerning AIPS++ should be addressed as follows: 00022 //# Internet email: aips2-request@nrao.edu. 00023 //# Postal address: AIPS++ Project Office 00024 //# National Radio Astronomy Observatory 00025 //# 520 Edgemont Road 00026 //# Charlottesville, VA 22903-2475 USA 00027 //# 00028 #ifndef SERIAL_PARTITION_MIXIN_H_ 00029 #define SERIAL_PARTITION_MIXIN_H_ 00030 00031 #include <synthesis/ImagerObjects/ParallelImagerParams.h> 00032 #include <synthesis/ImagerObjects/MPIGlue.h> 00033 #include <string> 00034 00035 namespace casa { 00036 00041 template <class T> 00042 class SerialPartitionMixin 00043 : public T { 00044 00045 public: 00046 void concat_images(const std::string &type __attribute__((unused))) {}; 00047 00048 protected: 00049 ParallelImagerParams 00050 get_params(MPI_Comm worker_comm __attribute__((unused)), 00051 ParallelImagerParams &initial) { 00052 return initial; 00053 } 00054 }; 00055 00056 } // namespace casa 00057 00058 #endif // SERIAL_PARTITION_MIXIN_H_