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 @@ ...@@ -2,8 +2,8 @@
<settings> <settings>
<run_mode>eigenvalue</run_mode> <run_mode>eigenvalue</run_mode>
<particles>100</particles> <particles>100</particles>
<batches>300</batches> <batches>10</batches>
<inactive>100</inactive> <inactive>2</inactive>
<source strength="1.0"> <source strength="1.0">
<space type="fission"> <space type="fission">
<parameters>-10.751819999999999 -10.751819999999999 36.007 10.751819999999999 10.751819999999999 236.0066</parameters> <parameters>-10.751819999999999 -10.751819999999999 36.007 10.751819999999999 10.751819999999999 236.0066</parameters>
......
...@@ -27,12 +27,12 @@ import Control.Foldl as Fold ...@@ -27,12 +27,12 @@ import Control.Foldl as Fold
import Text.Show.Pretty import Text.Show.Pretty
import System.Environment import System.Environment
cleanLeftovers :: WorkingDirectory -> Shell () cleanLeftovers :: WorkingDirectory -> Shell () --TODO
cleanLeftovers (WorkingDirectory wd) = do cleanLeftovers (WorkingDirectory wd) = do
printInfo "Cleaning working(output) directory." printInfo "Cleaning working(output) directory."
cleanLog wd cleanLog wd
printInfo "Cleaning sockets." 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 :: FilePath -> Shell ()
checkFsAttributes workingDirectory = do checkFsAttributes workingDirectory = do
...@@ -193,6 +193,7 @@ runStack sa@StackArgs {..} = do ...@@ -193,6 +193,7 @@ runStack sa@StackArgs {..} = do
CM.mapM_ CM.mapM_
cleanSocket cleanSocket
[ "/tmp/nrm-downstream-in" [ "/tmp/nrm-downstream-in"
, "/tmp/nrm-downstream-event"
, "/tmp/nrm-upstream-in" , "/tmp/nrm-upstream-in"
, "/tmp/nrm-upstream-event" , "/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