File: BoundaryController.hpp

package info (click to toggle)
yade 2026.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,448 kB
  • sloc: cpp: 97,645; python: 52,173; sh: 677; makefile: 162
file content (19 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <core/GlobalEngine.hpp>

namespace yade { // Cannot have #include directive inside.

class BoundaryController : public GlobalEngine {
	void action() override
	{
		{
			throw std::runtime_error("BoundaryController must not be used in simulations directly (BoundaryController::action called).");
		}
	}
	// clang-format off
	YADE_CLASS_BASE_DOC(BoundaryController,GlobalEngine,"Base for engines controlling boundary conditions of simulations. Not to be used directly.");
	// clang-format on
};
REGISTER_SERIALIZABLE(BoundaryController);

} // namespace yade