Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release to ROMFPMD #307

Merged
merged 22 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1ad1292
Fix EnergyAndForces tests (#277)
jeanlucf22 Sep 26, 2024
8ac6cd6
Move factor 4pi out og linear solvers (#278)
jeanlucf22 Sep 30, 2024
a2ece1a
Move some code into PoissonSolverFactory (#279)
jeanlucf22 Sep 30, 2024
8b577ea
Clean up class Potentials (#280)
jeanlucf22 Oct 3, 2024
7ac691c
Clean up class Ions, add test for it (#281)
jeanlucf22 Oct 12, 2024
c05ba7f
Add test MD_MVP (#290)
jeanlucf22 Nov 25, 2024
bb8051d
Clean up code related to DM restart data (#292)
jeanlucf22 Dec 2, 2024
a227c04
Write dm (#291)
jeanlucf22 Dec 2, 2024
b263532
Remove unused function in Control (#294)
jeanlucf22 Dec 23, 2024
3eb52d6
Change symlink to restart in tests (#295)
jeanlucf22 Jan 3, 2025
c1d46bc
Extract number empty orbitals from restart file (#296)
jeanlucf22 Jan 7, 2025
eb53963
Clean up MD_IonicStepper restart data write (#297)
jeanlucf22 Jan 16, 2025
857673f
Clean up code based on compiler warnings (#299)
jeanlucf22 Jan 17, 2025
f294d3c
Add getForces for evaluateDMandEnergyAndForces (#300)
siuwuncheung Jan 23, 2025
98a79de
Add check for compatibility MVP/Mehrstellen (#301)
jeanlucf22 Jan 24, 2025
8eda83e
Add support for Br atom (#302)
jeanlucf22 Feb 3, 2025
f298d43
Clean up some HDFrestart functions (#303)
jeanlucf22 Feb 11, 2025
c690bc5
Fix and test restart single hdf5 file (#305)
jeanlucf22 Feb 17, 2025
9f1fc20
Save Hartree potential for write in restart file (#306)
jeanlucf22 Feb 17, 2025
a697518
Merge branch 'release' into merge_release_20250219
siuwuncheung Feb 19, 2025
518ef00
Add commit number temporarily
siuwuncheung Feb 19, 2025
82abde5
Fix merge
siuwuncheung Feb 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,529 changes: 2,529 additions & 0 deletions potentials/pseudo.Br_ONCV_PBE_SG15

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/build_quartz_libROM.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ USE_LIBROM="On"
LIBROM_PATH=${BUILD_DIR}/libROM
git clone https://github.com/LLNL/libROM
cd libROM
git checkout 321d18f4d5adfa29f0a3de9be2699fee9732f2bf
#./scripts/compile.sh -t ./cmake/toolchains/default-toss_4_x86_64_ib-librom-dev.cmake
./scripts/compile.sh
cd ${BUILD_DIR}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_ubuntu22_openmpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DMPIEXEC_PREFLAGS="--oversubscribe" \
-DMGMOL_WITH_CLANG_FORMAT=ON \
-DCMAKE_PREFIX_PATH=${HOME}/bin \
-DCMAKE_CXX_FLAGS="-Wall -pedantic -Wextra" \
-D CMAKE_CXX_FLAGS="-Wall -pedantic -Wextra -Wno-cast-function-type" \
..

# call make install
Expand Down
25 changes: 8 additions & 17 deletions src/Control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,6 @@ float Control::total_spin_ = 0.;
std::string Control::run_directory_(".");
bool Control::with_spin_ = false;

static void finishRead(std::ifstream& tfile)
{
// while( tfile.get()!='\n');
// string str;
// getline(tfile,str);
char str[256];
tfile.getline(str, 256);

char cc = (char)tfile.peek();
while (cc == ('#') || (cc == '\n') || cc == ' ')
{
while (tfile.get() != '\n')
;
cc = (char)tfile.peek(); // look at next character
}
}

Control::Control()
{
assert(comm_global_ != MPI_COMM_NULL);
Expand Down Expand Up @@ -1839,6 +1822,14 @@ int Control::checkOptions()
return -1;
}

if (DM_solver_ > 0 && lap_type == 0)
{
std::cerr << "DM_solver_ = " << DM_solver_ << std::endl;
std::cerr << "ERROR: Mehrstellen not compatible with MVP inner solvers!"
<< std::endl;
return -1;
}

if (it_algo_type_ == 3 && lap_type == 0)
{
std::cerr
Expand Down
2 changes: 2 additions & 0 deletions src/Control.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ class Control
// 10 or larger means CG, otherwise MG V-cycles
bool MGPoissonSolver() { return (diel_flag_ / 10 == 0); }

bool LangevinThermostat() { return (thermostat_type == 1); }

//
// data
//
Expand Down
13 changes: 6 additions & 7 deletions src/DistributedIonicData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "tools.h"

#include <string.h>
using namespace std;

DistributedIonicData::DistributedIonicData(
const std::vector<std::string>& local_names,
Expand All @@ -31,16 +30,16 @@ DistributedIonicData::DistributedIonicData(

int DistributedIonicData::pack(char* cbuff, double* dbuff)
{
vector<double>::iterator itf = data_.begin();
double* dptr = dbuff;
std::vector<double>::iterator itf = data_.begin();
double* dptr = dbuff;

int idx = 0;
for (vector<std::string>::iterator it = ion_names_.begin();
for (std::vector<std::string>::iterator it = ion_names_.begin();
it != ion_names_.end(); ++it)
{
string s(*it);
std::string s(*it);
FixedLengthString t;
strncpy(t.mystring, s.c_str(), IonData_MaxStrLength);
strncpy(t.mystring, s.c_str(), IonData_MaxStrLength - 1);
memcpy(&cbuff[idx], t.mystring, IonData_MaxStrLength);
idx += IonData_MaxStrLength;

Expand All @@ -58,7 +57,7 @@ void DistributedIonicData::unpack(char*& cptr, double*& dptr, const short ndata)
for (short i = 0; i < ndata; i++)
{
// get name
string name(cptr, IonData_MaxStrLength);
std::string name(cptr, IonData_MaxStrLength);
stripLeadingAndTrailingBlanks(name);
ion_names_.push_back(name);
cptr += IonData_MaxStrLength;
Expand Down
Loading