Skip to content

Commit

Permalink
Add missing miniMD_math.h file
Browse files Browse the repository at this point in the history
Should have been part of Mantevo#3.
  • Loading branch information
Pennycook committed Dec 7, 2018
1 parent 10be5d6 commit 171eae8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions target/miniMD_math.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* ----------------------------------------------------------------------
miniMD is a simple, parallel molecular dynamics (MD) code. miniMD is
an MD microapplication in the Mantevo project at Sandia National
Laboratories ( http://www.mantevo.org ). The primary
authors of miniMD are Steve Plimpton ([email protected]), Paul Crozier
([email protected]) and Christian Trott ([email protected]).
Copyright (2008) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This library is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Free Software Foundation;
either version 3 of the License, or (at your option) any later
version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this software; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA. See also: http://www.gnu.org/licenses/lgpl.txt .
For questions, contact Paul S. Crozier ([email protected]) or
Christian Trott ([email protected]).
Please read the accompanying README and LICENSE files.
---------------------------------------------------------------------- */
#ifndef MINIMD_MATH_H
#define MINIMD_MATH_H

// Temporary workaround for clang's aversion to system math.h
#ifdef __clang__
#undef __SSE2_MATH__
#undef __SSE2__
#undef __SSE_MATH__
#undef __SSE__
#endif
#include <cmath>

#endif

0 comments on commit 171eae8

Please sign in to comment.