/* Copy back the global charge group indices from state
* and rebuild the local charge group to atom index.
*/
- for (unsigned int i = 0; i < atomGroupsState.size(); i++)
+ for (gmx::index i = 0; i < atomGroupsState.size(); i++)
{
const int atomGroupGlobal = atomGroupsState[i];
const int groupSize = gcgs_index[atomGroupGlobal + 1] - gcgs_index[atomGroupGlobal];
gmx_bool bNewFile, bIndex, bWrite;
int *cont_type;
real *readtime, *timest, *settime;
- real first_time = 0, lasttime, last_ok_t = -1, timestep;
+ real first_time = 0, lasttime = 0, last_ok_t = -1, timestep;
gmx_bool lastTimeSet = FALSE;
real last_frame_time, searchtime;
int isize = 0, j;
}
rvec *makeRvecArray(gmx::ArrayRef<const gmx::RVec> v,
- unsigned int n)
+ gmx::index n)
{
GMX_ASSERT(v.size() >= n, "We can't copy more elements than the vector size");
/*! \brief Allocates an rvec pointer and copy the contents of v to it */
rvec *makeRvecArray(gmx::ArrayRef<const gmx::RVec> v,
- unsigned int n);
+ gmx::index n);
/*! \brief Determine the relative box components
*
#ifdef GMX_DISABLE_ASSERTS
#define GMX_RELEASE_ASSERT(condition, msg)
#else
-# ifndef _MSC_VER
+# if !defined _MSC_VER || defined __INTEL_COMPILER
// Use an "immediately invoked function expression" to allow being
// used in constexpr context with older GCC versions
// https://akrzemi1.wordpress.com/2017/05/18/asserts-in-constexpr-functions/