Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83103594
lmpwindows.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 15, 05:34
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Sep 17, 05:34 (2 d)
Engine
blob
Format
Raw Data
Handle
20780062
Attached To
rLAMMPS lammps
lmpwindows.h
View Options
#include <iso646.h>
#if !defined(__MINGW32_VERSION)
#include "erf.h"
#endif
#include "direct.h"
#include "math.h"
// LAMMPS uses usleep with 100 ms arguments, no microsecond precision needed
#if !defined(__MINGW32_VERSION)
#include "sleep.h"
#endif
// some symbols have different names in Windows
#undef ATOBIGINT
#define ATOBIGINT _atoi64
#define pclose _pclose
#define __restrict__ __restrict
// the following functions ared defined to get rid of
// 'ambiguous call to overloaded function' error in VSS for mismathched type arguments
#if defined(__MINGW32_VERSION)
inline double pow(int i, int j){
return pow((double)i,(double) j);
}
inline double pow(double i, int j){
return pow(i,(double) j);
}
#else
inline double pow(int i, int j){
return pow((double)i,j);
}
#endif
inline double sqrt(int i){
return sqrt((double) i);
}
inline double fabs(int i){
return fabs((double) i);
}
inline double trunc(double x) {
return x > 0 ? floor(x) : ceil(x);
}
// Windows version of mkdir function does not have permission flags
# define S_IRWXU 0
# define S_IRGRP 0
# define S_IXGRP 0
inline int mkdir(const char *path, int){
return _mkdir(path);
}
Event Timeline
Log In to Comment