8 #include "ioda/ObsSpace.h" 14 #include "eckit/config/Configuration.h" 17 #include "oops/util/abor1_cpp.h" 18 #include "oops/util/Logger.h" 26 const util::DateTime & bgn,
const util::DateTime &
end)
29 oops::Log::trace() <<
"ioda::ObsSpace config = " <<
config << std::endl;
31 const eckit::Configuration * configc = &
config;
35 oops::Log::trace() <<
"ioda::ObsSpace contructed name = " <<
obsname_ << std::endl;
58 const std::size_t & vsize,
int vdata[])
const {
63 const std::size_t & vsize,
double vdata[])
const {
68 const std::size_t & vsize,
const int vdata[])
const {
73 const std::size_t & vsize,
const double vdata[])
const {
79 const util::DateTime *
p1 = &
t1;
80 const util::DateTime *
p2 = &
t2;
107 const eckit::Configuration * configc = &
conf;
117 os <<
"ObsSpace::print not implemented";
void get_db(const std::string &, const std::string &, const std::size_t &, int[]) const
void ioda_obsdb_getd_f90(const F90odb &, const int &, const char *, const int &, double[])
ObsVector class to handle vectors in observation space for IODA.
ObsSpace(const eckit::Configuration &, const util::DateTime &, const util::DateTime &)
************************************************************************GNU Lesser General Public License **This file is part of the GFDL Flexible Modeling System(FMS). ! *! *FMS is free software without even the implied warranty of MERCHANTABILITY or *FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License *for more details **You should have received a copy of the GNU Lesser General Public *License along with FMS If see< http:! ***********************************************************************!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! MPP_TRANSMIT !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! subroutine MPP_TRANSMIT_(put_data, put_len, to_pe, get_data, get_len, from_pe, block, tag, recv_request, send_request)!a message-passing routine intended to be reminiscent equally of both MPI and SHMEM!put_data and get_data are contiguous MPP_TYPE_ arrays!at each call, your put_data array is put to to_pe 's get_data! your get_data array is got from from_pe 's put_data!i.e we assume that typically(e.g updating halo regions) each PE performs a put _and_ a get!special PE designations:! NULL_PE:to disable a put or a get(e.g at boundaries)! ANY_PE:if remote PE for the put or get is to be unspecific! ALL_PES:broadcast and collect operations(collect not yet implemented)!ideally we would not pass length, but this f77-style call performs better(arrays passed by address, not descriptor)!further, this permits< length > contiguous words from an array of any rank to be passed(avoiding f90 rank conformance check)!caller is responsible for completion checks(mpp_sync_self) before and after integer, intent(in) ::put_len, to_pe, get_len, from_pe MPP_TYPE_, intent(in) ::put_data(*) MPP_TYPE_, intent(out) ::get_data(*) logical, intent(in), optional ::block integer, intent(in), optional ::tag integer, intent(out), optional ::recv_request, send_request logical ::block_comm integer ::i MPP_TYPE_, allocatable, save ::local_data(:) !local copy used by non-parallel code(no SHMEM or MPI) integer ::comm_tag integer ::rsize if(.NOT.module_is_initialized) call mpp_error(FATAL, 'MPP_TRANSMIT:You must first call mpp_init.') if(to_pe.EQ.NULL_PE .AND. from_pe.EQ.NULL_PE) return block_comm=.true. if(PRESENT(block)) block_comm=block if(debug) then call SYSTEM_CLOCK(tick) write(stdout_unit,'(a, i18, a, i6, a, 2i6, 2i8)')&'T=', tick, ' PE=', pe, ' MPP_TRANSMIT begin:to_pe, from_pe, put_len, get_len=', to_pe, from_pe, put_len, get_len end if comm_tag=DEFAULT_TAG if(present(tag)) comm_tag=tag!do put first and then get if(to_pe.GE.0 .AND. to_pe.LT.npes) then!use non-blocking sends if(debug .and.(current_clock.NE.0)) call SYSTEM_CLOCK(start_tick)!z1l:truly non-blocking send.! if(request(to_pe).NE.MPI_REQUEST_NULL) then !only one message from pe-> to_pe in queue *PE waiting for to_pe ! call error else get_len so only do gets but you cannot have a pure get with MPI call a get means do a wait to ensure put on remote PE is complete error call increase mpp_nml request_multiply call MPP_TRANSMIT end
void print(std::ostream &) const
void printJo(const ObsVector &, const ObsVector &)
void getObsVector(const std::string &, std::vector< double > &) const
The namespace for the main oops code.
void ioda_obsdb_delete_f90(F90odb &)
subroutine, public info(self)
void ioda_obsdb_putd_f90(const F90odb &, const int &, const char *, const int &, const double[])
void ioda_obsdb_geti_f90(const F90odb &, const int &, const char *, const int &, int32_t[])
void ioda_obsdb_nobs_f90(const F90odb &, int &)
const util::DateTime winend_
void putObsVector(const std::string &, const std::vector< double > &) const
Locations class to handle locations for IODA.
const eckit::mpi::Comm & comm()
void ioda_obsdb_puti_f90(const F90odb &, const int &, const char *, const int &, const int32_t[])
void put_db(const std::string &, const std::string &, const std::size_t &, const int[]) const
Locations * locations(const util::DateTime &, const util::DateTime &) const
void generateDistribution(const eckit::Configuration &)
Pure virtual methods.
const eckit::Configuration & config() const
Access information.
void ioda_obsdb_setup_f90(F90odb &, const eckit::Configuration *const *)
const util::DateTime winbgn_
void ioda_obsdb_generate_f90(const F90odb &, const eckit::Configuration *const *, const util::DateTime *const *, const util::DateTime *const *)
void ioda_obsdb_nlocs_f90(const F90odb &, int &)
void ioda_obsdb_getlocations_f90(const F90odb &, const util::DateTime *const *, const util::DateTime *const *, F90locs &)