LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
mbe_legacyoutputmodel.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-LandscapeDNDC
4 * This file is part of LandscapeDNDC. See LICENSE.
5 */
13
14#ifndef MBE_LEGACYOUTPUTMODEL_H_
15#define MBE_LEGACYOUTPUTMODEL_H_
16
17#include "mbe_legacymodel.h"
18#include "ld_sinkinterface.h"
19
20/* print zero lines if no species exist */
21#define LDNDC_OUTPUT_HAVE_DUMMY_LINES 1
22
23#define LDNDC_OUTPUT_DEFINE_SINK_LAYOUT_DEFAULTS(__sink__,__name__) \
24 LDNDC_OUTPUT_DEFINE_SINK_LAYOUT(__sink__,__name__,this->get_metaflags())
25
26
27namespace ldndc {
28class LDNDC_API MBE_LegacyOutputModel : public MBE_LegacyModel
29{
30 protected:
31 MBE_LegacyOutputModel( MoBiLE_State * /*state*/,
32 cbm::io_kcomm_t * /*i/o*/, timemode_e /*timemode*/);
33 virtual ~MBE_LegacyOutputModel();
34
35 public:
36 lerr_t set_metaflags( ldndc::config_file_t const *,
37 lflags_t const & = RM_DEFAULTS /*predefines*/);
38 lflags_t get_metaflags() const;
39 bool separate_concurrent() const
40 { return this->m_sif.separate_concurrent(); }
41
42 void set_layernumber( int _seqnb)
43 { this->m_sif.set_layernumber( _seqnb); }
44
45 lerr_t write_fixed_record( ldndc::sink_handle_t * /*target sink*/,
46 void ** /*data record*/);
47 lerr_t write_fixed_zero_record(
48 ldndc::sink_handle_t * /*target sink*/);
49
50 private:
51 SinkInterface m_sif;
52};
53
54} /* namespace ldndc */
55
56#endif /* !MBE_LEGACYOUTPUTMODEL_H_ */
57
Spatially explicit groundwater model.
Definition airchemistryput.h:21