swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: a7f61ea06959277ac2fa544b39f6113e7f111786 authored by Lars Bilke on 27 April 2021, 06:54:04 UTC
[web] Added hint on number of compilations per RAM.
Tip revision: a7f61ea
GocadNode.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include "GocadNode.h"

namespace FileIO
{
namespace Gocad
{
bool operator<=(GocadNode const& n0, GocadNode const& n1)
{
    for (std::size_t k(0); k < 3; k++)
    {
        if (n0[0] > n1[0])
        {
            return false;
        }
        if (n0[0] < n1[0])
        {
            return true;
        }
        // => n0[k] == n1[k]
    }

    return n0.getLayerTransitionIndex() <= n1.getLayerTransitionIndex();
}

}  // end namespace Gocad
}  // end namespace FileIO
back to top