-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rotation calculated for spherical particles (#274)
* Optimization of Quaternion for vector {0,0,0} * Minor optimization: Avoid normalizing identity quaternions * Profile with gprof; Reverted minor changes * Feedback from PR * CMake option and documentation for profiling --------- Co-authored-by: Ruben Horn <>
- Loading branch information
Showing
4 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** \page Profiling | ||
|
||
In order to assess the runtime for parts of the code or even individual functions, one may use the <a href="https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_chapter/gprof_toc.html">GNU profiler</a> by following the steps below: | ||
|
||
-# Set the option `ENABLE_GPROF` to `ON` and compile ls1. (Make sure to use either the GNU or Clang compiler.) | ||
-# Run an experiment and make sure that the program exits normally. | ||
-# Rename the output file `gmon.out` generated by the profiler as it is overwritten by subsequent runs. | ||
-# Extract the human-readable report using `gprof build/src/MarDyn gmon.out`. | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,6 @@ class Quaternion { | |
|
||
private: | ||
double m_qw, m_qx, m_qy, m_qz; // components | ||
|
||
}; | ||
|
||
#endif /*QUATERNION_H_*/ |