Skip to content

PTM on openacc as a PLUGIN - show#47

Draft
Iximiel wants to merge 9 commits intomasterfrom
ptmAccPlug
Draft

PTM on openacc as a PLUGIN - show#47
Iximiel wants to merge 9 commits intomasterfrom
ptmAccPlug

Conversation

@Iximiel
Copy link
Owner

@Iximiel Iximiel commented Sep 1, 2025

Description

A temporary PR to have a easier access to the diff for this branch

Target release

I would like my code to appear in release XXXXX

Type of contribution
  • changes to code or doc authored by PLUMED developers, or additions of code in the core or within the default modules
  • changes to a module not authored by you
  • new module contribution or edit of a module authored by you
Copyright
  • I agree to transfer the copyright of the code I have written to the PLUMED developers or to the author of the code I am modifying.
  • the module I added or modified contains a COPYRIGHT file with the correct license information. Code should be released under an open source license. I also used the command cd src && ./header.sh mymodulename in order to make sure the headers of the module are correct.
Tests
  • I added a new regtest or modified an existing regtest to validate my changes.
  • I verified that all regtests are passed successfully on GitHub Actions.

log.printf(" without periodic boundary conditions\n");
}

unsigned mode = getModeAndSetupValues( this );

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable mode is not used.

Copilot Autofix

AI 5 months ago

To fix the problem, simply remove the unused variable declaration on line 100. The function call to getModeAndSetupValues(this) should be left as a statement by itself, since its side effects may be required, but there is no need to store its return value. Only the code at line 100 (unsigned mode = getModeAndSetupValues( this );) needs to be changed, converting it to the following statement: getModeAndSetupValues(this);. No other changes to the file or imports are necessary.

Suggested changeset 1
src/colvar/Plane.h

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/src/colvar/Plane.h b/src/colvar/Plane.h
--- a/src/colvar/Plane.h
+++ b/src/colvar/Plane.h
@@ -97,7 +97,7 @@
     log.printf("  without periodic boundary conditions\n");
   }
 
-  unsigned mode = getModeAndSetupValues( this );
+  getModeAndSetupValues( this );
   requestAtoms(atoms);
   checkRead();
 }
EOF
@@ -97,7 +97,7 @@
log.printf(" without periodic boundary conditions\n");
}

unsigned mode = getModeAndSetupValues( this );
getModeAndSetupValues( this );
requestAtoms(atoms);
checkRead();
}
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant