1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/*
* Copyright (C) 2018-2020 Edward F. Valeev
*
* This file is part of Libint.
*
* Libint is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Libint is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Libint. If not, see <http://www.gnu.org/licenses/>.
*
*/
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <libint2.hpp>
#if !LIBINT2_CONSTEXPR_STATICS
# include <libint2/statics_definition.h>
#endif
int main( int argc, char* argv[] )
{
Catch::Session session;
// global setup...
// initializes the Libint integrals library ... now ready to compute
libint2::initialize();
#ifdef LIBINT_HAS_MPFR
// default to 256 bits of precision for mpf_class
mpf_set_default_prec(256);
#endif
int result = session.run( argc, argv );
libint2::finalize(); // done with libint
return result;
}
|