From cf64ba40594cdd4bece89b6f304c84bc0ff05771 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 9 Mar 2020 16:31:53 -0400 Subject: [PATCH] whitespace cleanup --- doc/src/fix_halt.rst | 14 ++++---------- src/fix_halt.cpp | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/doc/src/fix_halt.rst b/doc/src/fix_halt.rst index 8daa831ea8..b18ff46de0 100644 --- a/doc/src/fix_halt.rst +++ b/doc/src/fix_halt.rst @@ -15,9 +15,9 @@ Syntax * halt = style name of this fix command * N = check halt condition every N steps * attribute = *bondmax* or *tlimit* or *diskfree* or *v\_name* - + .. parsed-literal:: - + bondmax = length of longest bond in the system (in length units) tlimit = elapsed CPU time (in seconds) diskfree = free disk space (in megabytes) @@ -27,19 +27,17 @@ Syntax * avalue = numeric value to compare attribute to * zero or more keyword/value pairs may be appended * keyword = *error* or *message* or *path* - + .. parsed-literal:: - + *error* value = *hard* or *soft* or *continue* *message* value = *yes* or *no* *path* value = path to check for free space (may be in quotes) - Examples """""""" - .. code-block:: LAMMPS fix 10 all halt 1 bondmax > 1.5 @@ -101,7 +99,6 @@ computing some attribute of the current system. For example, the following "bondmax" variable will calculate the same quantity as the hstyle = bondmax option. - .. code-block:: LAMMPS compute bdist all bond/local dist @@ -110,7 +107,6 @@ hstyle = bondmax option. Thus these two versions of a fix halt command will do the same thing: - .. code-block:: LAMMPS fix 10 all halt 1 bondmax > 1.5 @@ -128,10 +124,8 @@ it is "false". The specified *avalue* must be a numeric value. - ---------- - The optional *error* keyword determines how the current run is halted. If its value is *hard*\ , then LAMMPS will stop with an error message. diff --git a/src/fix_halt.cpp b/src/fix_halt.cpp index e201c44a46..0559c2e125 100644 --- a/src/fix_halt.cpp +++ b/src/fix_halt.cpp @@ -322,7 +322,7 @@ double FixHalt::diskfree() disk_free = fs.f_bavail*fs.f_bsize/1048576.0; else disk_free = -1.0; - + MPI_Bcast(&disk_free,1,MPI_DOUBLE,0,world); } return disk_free;