https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 7be87e3afc82e871791ae9d6eb0465ba66a427ea authored by Wenqing Wang on 22 April 2021, 15:16:32 UTC
[BC/Python] Allow Dirichlet BC for the computation with the Taylor-Hood elements
Tip revision: 7be87e3
TestPoint3dWithID.cpp
/**
 * \file
 * \date 2015-05-21
 *
 * \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 <gtest/gtest.h>

#include <ctime>

#include "MathLib/Point3dWithID.h"

using namespace MathLib;

TEST(MathLib, Point3dWithID)
{
    Point3dWithID p0(0, 0, 0, 1);
    const Point3dWithID& p1(p0);  // copy constructor
    Point3dWithID p2(p0, 2);      // constructor for resetting the id

    EXPECT_EQ(p0.getID(), p1.getID());
    EXPECT_NE(p0.getID(), p2.getID());
}
back to top