Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena_MET
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Plebani
athena_MET
Commits
32db13a9
Commit
32db13a9
authored
1 year ago
by
Andrii Verbytskyi
Committed by
Adam Edward Barton
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace boost::filesystem with std::filesystem in Herwig interface
Replace boost::filesystem with std::filesystem in Herwig interface
parent
599f1e40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Generators/Herwig7_i/src/Herwig7.cxx
+4
-4
4 additions, 4 deletions
Generators/Herwig7_i/src/Herwig7.cxx
with
4 additions
and
4 deletions
Generators/Herwig7_i/src/Herwig7.cxx
+
4
−
4
View file @
32db13a9
...
...
@@ -28,7 +28,7 @@
#include
"PathResolver/PathResolver.h"
#include
"boost/thread/thread.hpp"
#include
"boost/
filesystem
.hpp"
#include
<
filesystem
>
#include
"boost/algorithm/string.hpp"
void
convert_to_HepMC
(
const
ThePEG
::
Event
&
m_event
,
HepMC
::
GenEvent
&
evt
,
bool
nocopies
,
ThePEG
::
Energy
eunit
,
ThePEG
::
Length
lunit
);
...
...
@@ -261,16 +261,16 @@ StatusCode Herwig7::genFinalize() {
ThePEG
::
Repository
::
cleanup
();
// possibly tidy up working directory
if
(
m_cleanup_herwig_scratch
&&
(
boo
st
::
filesystem
::
is_directory
(
"Herwig-scratch"
)
||
boo
st
::
filesystem
::
is_directory
(
"Herwig-cache"
))){
if
(
m_cleanup_herwig_scratch
&&
(
st
d
::
filesystem
::
is_directory
(
"Herwig-scratch"
)
||
st
d
::
filesystem
::
is_directory
(
"Herwig-cache"
))){
ATH_MSG_INFO
(
"removing Herwig-scratch/Herwig-cache folder from "
+
boo
st
::
filesystem
::
current_path
().
string
());
ATH_MSG_INFO
(
"removing Herwig-scratch/Herwig-cache folder from "
+
st
d
::
filesystem
::
current_path
().
string
());
// sleep for some time to allow all access to terminate
boost
::
this_thread
::
sleep
(
boost
::
posix_time
::
seconds
(
5
));
/// \todo Think of other way to wait for all access to terminate
// in case the folder can't be deleted continue with warning
try
{
(
boo
st
::
filesystem
::
remove_all
(
"Herwig-scratch"
)
||
boo
st
::
filesystem
::
remove_all
(
"Herwig-cache"
));
(
st
d
::
filesystem
::
remove_all
(
"Herwig-scratch"
)
||
st
d
::
filesystem
::
remove_all
(
"Herwig-cache"
));
}
catch
(
const
std
::
exception
&
e
)
{
ATH_MSG_WARNING
(
"Failed to delete the folder 'Herwig-scratch': "
+
std
::
string
(
e
.
what
()));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment