Skip to content

Commit

Permalink
Remove useless condition in getnbcustom data functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Lanrezac committed Jun 26, 2024
1 parent a62bfae commit 8fa772f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugins/UnityMol/UMolMDDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,12 @@ int MDDriver_getNbParticles(MDDriverAdapter *mddinstance) {
}

int MDDriver_getNbCustomFloat(MDDriverAdapter *mddinstance) {
if (mddinstance->N_floats <= 0) {
IIMD_get_nb_custom_float(&(mddinstance->N_floats));
}
IIMD_get_nb_custom_float(&(mddinstance->N_floats));
return mddinstance->N_floats;
}

int MDDriver_getNbCustomInt(MDDriverAdapter *mddinstance) {
if (mddinstance->N_ints <= 0) {
IIMD_get_nb_custom_int(&(mddinstance->N_ints));
}
IIMD_get_nb_custom_int(&(mddinstance->N_ints));
return mddinstance->N_ints;
}

Expand Down

0 comments on commit 8fa772f

Please sign in to comment.