Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
5d667532
Commit
5d667532
authored
Jul 22, 2014
by
Pilar Cossio
Browse files
Controll for particle Map file header missing
parent
e49f5d72
Changes
1
Hide whitespace changes
Inline
Side-by-side
map.cpp
View file @
5d667532
...
...
@@ -111,6 +111,7 @@ int bioem_RefMap::readRefMaps(bioem_param& param, const char* filemap)
char
line
[
512
]
=
{
0
};
char
tmpLine
[
512
]
=
{
0
};
bool
first
=
true
;
while
(
!
input
.
eof
())
{
...
...
@@ -119,6 +120,14 @@ int bioem_RefMap::readRefMaps(bioem_param& param, const char* filemap)
strncpy
(
tmpLine
,
line
,
strlen
(
line
));
char
*
token
=
strtok
(
tmpLine
,
" "
);
if
(
first
){
if
(
strcmp
(
token
,
"PARTICLE"
)
!=
0
)
{
cout
<<
"Missing correct Standard Map Format: PARTICLE HEADER
\n
"
<<
endl
;
exit
(
1
);
}
first
=
false
;
}
if
(
strcmp
(
token
,
"PARTICLE"
)
==
0
)
// to count the number of maps
{
nummap
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment