Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / coordinateio / outputadapters / setforces.cpp
index 232dd2609227c7735aac606c6846ff5c85d805d6..1d67b85abe1e80977187bf81de22a464dd62a8c4 100644 (file)
 namespace gmx
 {
 
-void
-SetForces::checkAbilityDependencies(unsigned long abilities) const
+void SetForces::checkAbilityDependencies(unsigned long abilities) const
 {
     if ((abilities & convertFlag(moduleRequirements_)) == 0U)
     {
-        std::string errorMessage = "Output file type does not support writing forces. "
-            "Only TNG and TRR support this output.";
+        std::string errorMessage =
+                "Output file type does not support writing forces. "
+                "Only TNG and TRR support this output.";
         GMX_THROW(InconsistentInputError(errorMessage.c_str()));
     }
 }
 
-void
-SetForces::processFrame(const int /*framenumber*/, t_trxframe *input)
+void SetForces::processFrame(const int /*framenumber*/, t_trxframe* input)
 {
     switch (force_)
     {
@@ -74,11 +73,11 @@ SetForces::processFrame(const int /*framenumber*/, t_trxframe *input)
         case (ChangeSettingType::Always):
             if (!input->bF)
             {
-                GMX_THROW(InconsistentInputError("Force output requested but current frame has no forces"));
+                GMX_THROW(InconsistentInputError(
+                        "Force output requested but current frame has no forces"));
             }
             break;
-        default:
-            GMX_THROW(InconsistentInputError("Value for force flag is not supported"));
+        default: GMX_THROW(InconsistentInputError("Value for force flag is not supported"));
     }
 }