biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved first batch of analysis tool source to C++
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
sfactor.cpp
diff --git
a/src/gromacs/gmxana/sfactor.cpp
b/src/gromacs/gmxana/sfactor.cpp
index 454247452026ab17a2c741f0d8b2ec2abe48902e..029f6e2c8c56b1febfe44590e1bb7d0a5e5007ef 100644
(file)
--- a/
src/gromacs/gmxana/sfactor.cpp
+++ b/
src/gromacs/gmxana/sfactor.cpp
@@
-39,6
+39,7
@@
#include "sfactor.h"
#include <cmath>
#include "sfactor.h"
#include <cmath>
+#include <cstring>
#include <algorithm>
#include <algorithm>
@@
-380,7
+381,7
@@
extern int return_atom_type (const char *name, gmx_structurefactors_t *gsf)
for (i = 0; (i < asize(uh)); i++)
{
for (i = 0; (i < asize(uh)); i++)
{
- if (strcmp(name, uh[i].name) == 0)
+ if (st
d::st
rcmp(name, uh[i].name) == 0)
{
return NCMT-1+uh[i].nh;
}
{
return NCMT-1+uh[i].nh;
}
@@
-388,7
+389,7
@@
extern int return_atom_type (const char *name, gmx_structurefactors_t *gsf)
for (i = 0; (i < NCMT); i++)
{
for (i = 0; (i < NCMT); i++)
{
- if (st
rncmp (name, gsft->atomnm[i],
strlen(gsft->atomnm[i])) == 0)
+ if (st
d::strncmp (name, gsft->atomnm[i], std::
strlen(gsft->atomnm[i])) == 0)
{
tndx[cnt] = i;
cnt++;
{
tndx[cnt] = i;
cnt++;
@@
-405,9
+406,9
@@
extern int return_atom_type (const char *name, gmx_structurefactors_t *gsf)
nrc = 0;
for (i = 0; i < cnt; i++)
{
nrc = 0;
for (i = 0; i < cnt; i++)
{
- if (strlen(gsft->atomnm[tndx[i]]) > (size_t)nrc)
+ if (st
d::st
rlen(gsft->atomnm[tndx[i]]) > (size_t)nrc)
{
{
- nrc = strlen(gsft->atomnm[tndx[i]]);
+ nrc = st
d::st
rlen(gsft->atomnm[tndx[i]]);
fndx = tndx[i];
}
}
fndx = tndx[i];
}
}