Loading...
Searching...
No Matches
AtomicDimerExitStatus.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_ATOMICDIMEREXITSTATUS_H_
6#define GPR_ATOMICDIMEREXITSTATUS_H_
7
8#include <cstdlib>
9
10#include "AtomicDimer.h"
11
12namespace atmd {
13
14inline int convergenceExitCode(const AtomicDimer& dimer) noexcept
15{
16 return dimer.getConverged() ? EXIT_SUCCESS : EXIT_FAILURE;
17}
18
19} // namespace atmd
20
21#endif // GPR_ATOMICDIMEREXITSTATUS_H_
Atomic dimer.
The atomic dimer search (class AtomicDimer) and its status types.
int convergenceExitCode(const AtomicDimer &dimer) noexcept