Commit ed4c7a0a authored by Valentin Reis's avatar Valentin Reis

nrm socket cleaning update

parent ce7b496d
Pipeline #5223 passed with stage
in 29 seconds
......@@ -2,8 +2,8 @@
<settings>
<run_mode>eigenvalue</run_mode>
<particles>100</particles>
<batches>300</batches>
<inactive>100</inactive>
<batches>10</batches>
<inactive>2</inactive>
<source strength="1.0">
<space type="fission">
<parameters>-10.751819999999999 -10.751819999999999 36.007 10.751819999999999 10.751819999999999 236.0066</parameters>
......
......@@ -27,12 +27,12 @@ import Control.Foldl as Fold
import Text.Show.Pretty
import System.Environment
cleanLeftovers :: WorkingDirectory -> Shell ()
cleanLeftovers :: WorkingDirectory -> Shell () --TODO
cleanLeftovers (WorkingDirectory wd) = do
printInfo "Cleaning working(output) directory."
cleanLog wd
printInfo "Cleaning sockets."
CM.mapM_ cleanSocket ["/tmp/nrm-downstream-in", "/tmp/nrm-upstream-in"]
CM.mapM_ cleanSocket ["/tmp/nrm-downstream-in", "/tmp/nrm-upstream-in", "/tmp/nrm-downstream-event"]
checkFsAttributes :: FilePath -> Shell ()
checkFsAttributes workingDirectory = do
......@@ -193,6 +193,7 @@ runStack sa@StackArgs {..} = do
CM.mapM_
cleanSocket
[ "/tmp/nrm-downstream-in"
, "/tmp/nrm-downstream-event"
, "/tmp/nrm-upstream-in"
, "/tmp/nrm-upstream-event"
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment