Changeset 6294b6
- Timestamp:
- Aug 11, 2025, 5:43:56 PM (5 months ago)
- Branches:
- Candidate_v1.7.0, Candidate_v1.7.1, stable
- Children:
- c41ce0
- Parents:
- c099dc
- git-author:
- Frederik Heber <frederik.heber@…> (05/02/24 22:20:01)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/11/25 17:43:56)
- Files:
-
- 12 edited
-
ThirdParty/mpqc_open/src/bin/mpqc/mpqc.cc (modified) (3 diffs)
-
ThirdParty/mpqc_open/src/bin/mpqc/mpqc.h (modified) (1 diff)
-
src/Actions/CommandAction/VerboseAction.cpp (modified) (1 diff)
-
src/Actions/FragmentationAction/FragmentationAutomationAction.cpp (modified) (1 diff)
-
src/Fragmentation/Automation/FragmentJobQueue.cpp (modified) (1 diff)
-
src/Fragmentation/Automation/MPQCFragmentController.cpp (modified) (2 diffs)
-
src/Fragmentation/Automation/MPQCFragmentController.hpp (modified) (1 diff)
-
src/Fragmentation/Exporters/ExportGraph_ToJobs.cpp (modified) (1 diff)
-
src/Jobs/MPQCJob.cpp (modified) (1 diff)
-
src/Jobs/MPQCJob.hpp (modified) (3 diffs)
-
src/Jobs/MPQCJob_Work.cpp (modified) (1 diff)
-
src/Jobs/MPQCJob_binding.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/mpqc_open/src/bin/mpqc/mpqc.cc
rc099dc r6294b6 1177 1177 } 1178 1178 1179 //!> this is backup for the old ExEnv::out0 stream when we override using /dev/null 1180 ostream *oldstream = NULL; 1181 1179 1182 /** Performs the main work to calculate the ground state energies, gradients, etc. 1180 1183 * … … 1193 1196 // get the basename for output files 1194 1197 setOutputBaseName(_initvalues.input, _initvalues.output); 1198 1199 // Based on verbose flag in InitValues, out ExEnv::set_out to nullstream (see out0()) to mute info 1200 ofstream nullofstream; 1201 if (_initvalues.verbose == 0) { 1202 // only change out0 when oldstream is unset, yet 1203 if (oldstream == NULL) { 1204 ExEnv::out0() << "Muting mpqc's output due to verbosity level of 0." << endl; 1205 nullofstream.open("/dev/null"); 1206 oldstream = &ExEnv::out0(); 1207 ExEnv::set_out(&nullofstream); 1208 } 1209 } else { 1210 // only revert out0 if oldstream is set, i.e., when it has been changed 1211 if (oldstream != NULL) { 1212 ExEnv::out0() << "Unmuting mpqc's output due to verbosity level of 1 or larger." << endl; 1213 ExEnv::set_out(oldstream); 1214 oldstream = NULL; 1215 } 1216 } 1195 1217 1196 1218 // parse input into keyvalue container … … 1477 1499 outstream(NULL), 1478 1500 in_char_array(NULL), 1479 values(::values) 1501 values(::values), 1502 verbose(0) 1480 1503 {}; 1481 1504 -
ThirdParty/mpqc_open/src/bin/mpqc/mpqc.h
rc099dc r6294b6 59 59 sc::GetLongOpt options; 60 60 sc::Ref< sc::MessageGrp> grp; 61 int verbose; 61 62 }; 62 63 -
src/Actions/CommandAction/VerboseAction.cpp
rc099dc r6294b6 58 58 // set new verbosity 59 59 setVerbosity(params.verbosity.get()); 60 LOG(0, "Setting verbosity from " << oldverbosity << " to " << params.verbosity.get() << ".");60 LOG(0, "Setting verbosity from " << oldverbosity << " to " << getVerbosity() << "."); 61 61 } else { 62 62 LOG(0, "Verbosity remains unchanged at " << oldverbosity << "."); -
src/Actions/FragmentationAction/FragmentationAutomationAction.cpp
rc099dc r6294b6 250 250 const bool AddJobsStatus = mpqccontroller.addJobsFromQueue( 251 251 params.DoLongrange.get() ? MPQCData::DoSampleDensity : MPQCData::DontSampleDensity, 252 params.DoValenceOnly.get() ? MPQCData::DoSampleValenceOnly : MPQCData::DontSampleValenceOnly 252 params.DoValenceOnly.get() ? MPQCData::DoSampleValenceOnly : MPQCData::DontSampleValenceOnly, 253 getVerbosity() 253 254 ); 254 255 if (AddJobsStatus) -
src/Fragmentation/Automation/FragmentJobQueue.cpp
rc099dc r6294b6 75 75 76 76 // create job 77 FragmentJob::ptr testJob( new MPQCJob(JobId::IllegalJob, output, begin, end, level) ); 77 const int verbose = getVerbosity(); 78 FragmentJob::ptr testJob( new MPQCJob(JobId::IllegalJob, output, begin, end, level, verbose) ); 78 79 testJob->setPriority(newlines); 79 80 jobs.push_back(testJob); -
src/Fragmentation/Automation/MPQCFragmentController.cpp
rc099dc r6294b6 54 54 bool MPQCFragmentController::addJobsFromQueue( 55 55 const MPQCData::DoLongrange_t _DoLongrange, 56 const MPQCData::DoValenceOnly_t _DoValenceOnly 56 const MPQCData::DoValenceOnly_t _DoValenceOnly, 57 const int _verbose 57 58 ) 58 59 { … … 66 67 job->DoLongrange = _DoLongrange; 67 68 job->DoValenceOnly = _DoValenceOnly; 69 job->verbose = _verbose; 68 70 JobId_t id = getAvailableId(); 69 71 if (id == (JobId_t)JobId::IllegalJob) { -
src/Fragmentation/Automation/MPQCFragmentController.hpp
rc099dc r6294b6 47 47 bool addJobsFromQueue( 48 48 const MPQCData::DoLongrange_t _DoLongrange, 49 const MPQCData::DoValenceOnly_t _DoValenceOnly 49 const MPQCData::DoValenceOnly_t _DoValenceOnly, 50 const int _verbose 50 51 ); 51 52 -
src/Fragmentation/Exporters/ExportGraph_ToJobs.cpp
rc099dc r6294b6 294 294 JobId::IllegalJob, 295 295 output.str(), 296 fragment_window.begin, fragment_window.end, fragment_window.level )296 fragment_window.begin, fragment_window.end, fragment_window.level, getVerbosity()) 297 297 #else 298 298 new MPQCCommandJob(output.str(), JobId::IllegalJob) -
src/Jobs/MPQCJob.cpp
rc099dc r6294b6 55 55 const double _begin[NDIM], 56 56 const double _end[NDIM], 57 const int _level) : 57 const int _level, 58 const int _verbose) : 58 59 FragmentJob(_JobId), 59 60 DoLongrange(MPQCData::DontSampleDensity), 60 61 DoValenceOnly(MPQCData::DoSampleValenceOnly), 61 62 inputfile(_inputfile), 62 grid(_begin, _end, _level) 63 grid(_begin, _end, _level), 64 verbose(_verbose) 63 65 { 64 66 #ifndef NDEBUG -
src/Jobs/MPQCJob.hpp
rc099dc r6294b6 39 39 const double _begin[NDIM], 40 40 const double _end[NDIM], 41 const int _level); 41 const int _level, 42 const int _verbose); 42 43 virtual ~MPQCJob(); 43 44 … … 49 50 //!> whether to sample just the valence or the total electron and nuclei density 50 51 MPQCData::DoValenceOnly_t DoValenceOnly; 52 53 //!> verbosity level of mpqc: 0 will mute all std out 54 int verbose; 51 55 52 56 private: … … 69 73 ar & DoLongrange; 70 74 ar & DoValenceOnly; 75 ar & verbose; 71 76 ar & const_cast<std::string &>(inputfile); 72 77 ar & const_cast<SamplingGridProperties &>(grid); -
src/Jobs/MPQCJob_Work.cpp
rc099dc r6294b6 73 73 initvalues.in_char_array[nfilebase] = '\0'; 74 74 initvalues.grp = MessageGrp::get_default_messagegrp(); 75 initvalues.verbose = verbose; 75 76 // create unique, temporary name and check whether it exists 76 77 char *tempfilename = NULL; -
src/Jobs/MPQCJob_binding.hpp
rc099dc r6294b6 25 25 const double begin[3] = { 0., 0., 0. }; 26 26 const double end[3] = { 1., 1., 1. }; 27 MPQCJob job(1, "test.in", begin, end, 2 );27 MPQCJob job(1, "test.in", begin, end, 2, 0); 28 28 } 29 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
