Skip to content

Commit

Permalink
Small fix for atomistic keywords meshtype value
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz committed Aug 19, 2021
1 parent 7f94b2a commit 97adfad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/detail/atomistic_keywords.hpp
Expand Up @@ -24,6 +24,7 @@ namespace keywords
{
segment.meshtype = strdup(in.string().c_str());
f._state->found_meshtype_atomistic = true;
f._state->found_meshtype = true;
}
};

Expand Down Expand Up @@ -345,6 +346,7 @@ namespace keywords
template< typename Input >
static void apply( const Input& in, ovf_file & f, ovf_segment & segment)
{
// fmt::print("basis line value: {}\n", in.string());
f._state->_cur_basis_line++;
}
};
Expand All @@ -355,6 +357,8 @@ namespace keywords
template< typename Input >
static void apply( const Input& in, ovf_file & f, ovf_segment & segment)
{
// fmt::print("basis value: {}\n", in.string());

f._state->found_basis = true;
if( segment.ncellpoints != f._state->_cur_basis_line ) // Need to make sure that the basis array is already allocated
{
Expand Down

0 comments on commit 97adfad

Please sign in to comment.