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

ROM calculations of Pinned H2O with 3 DOF #289

Open
wants to merge 59 commits into
base: ROMFPMD
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
59 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
fa36d2f
set up offline procedure
siuwuncheung Nov 14, 2024
1526974
Parametric file
siuwuncheung Nov 14, 2024
65939c5
Add basis script
siuwuncheung Nov 14, 2024
03e59eb
Add postprocessing scripts
siuwuncheung Nov 14, 2024
318325c
Add files via upload
siuwuncheung Nov 15, 2024
b616e8e
Add restore check. Make H1 shorter than H2 in original system for ver…
siuwuncheung Nov 19, 2024
ffd2a8b
Merge branch 'ROM-PinnedH2O-3DOF' of https://github.com/LLNL/mgmol in…
siuwuncheung Nov 19, 2024
38a0511
Minor change
siuwuncheung Nov 19, 2024
2f79fdb
Add C++ translation
siuwuncheung Nov 19, 2024
8f61523
Add restoring test
siuwuncheung Nov 19, 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
a09ca14
Set up test
siuwuncheung Dec 3, 2024
47e6335
Update cfg
siuwuncheung Dec 3, 2024
cdf38c8
Fix conversions
siuwuncheung Dec 6, 2024
15555f4
Add new script
siuwuncheung Dec 6, 2024
f2c963c
Add CMake
siuwuncheung Dec 6, 2024
b09a20f
Restore
siuwuncheung Dec 12, 2024
cac12ac
Updates
siuwuncheung Dec 13, 2024
9acca3f
Changes
siuwuncheung Dec 19, 2024
98ef8f2
Relocate set
siuwuncheung Dec 19, 2024
b2bc316
Refactor
siuwuncheung Dec 19, 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
6feca4f
Merge release to ROMFPMD
siuwuncheung Jan 16, 2025
c9b4a15
Merge branch 'merge-release-20250113' into ROM-PinnedH2O-3DOF
siuwuncheung Jan 16, 2025
e2656f8
Merge branch 'ROMFPMD' into ROM-PinnedH2O-3DOF
siuwuncheung Jan 16, 2025
0bb043d
updates
siuwuncheung Jan 16, 2025
15a0e37
Updates
siuwuncheung Jan 17, 2025
88f2535
Fixes
siuwuncheung Jan 17, 2025
eaa93ea
Add computeGramAndInvS
siuwuncheung Jan 17, 2025
0777a95
Add
siuwuncheung Jan 17, 2025
7fa2b79
Debug
siuwuncheung Jan 21, 2025
f33a8d9
Clean up
siuwuncheung Jan 21, 2025
4a1c0ef
Turn on MVP solver for nempty > 0 case
siuwuncheung Jan 22, 2025
3f18631
Add getForces for evaluateDMandEnergyAndForces
siuwuncheung Jan 23, 2025
1340d30
Merge branch 'DM_driver_print_force' into ROM-PinnedH2O-3DOF
siuwuncheung Jan 23, 2025
c25c614
Add new tests
siuwuncheung Jan 23, 2025
1b5ed09
Remove redundant line
siuwuncheung Jan 23, 2025
2b62d76
Fix filename
siuwuncheung Jan 23, 2025
6e0113b
Add quench and MVP comparison for main executable
siuwuncheung Jan 24, 2025
e699f4d
minor changes
siuwuncheung Jan 24, 2025
9943a23
Changes in setting of Quench and MVP comparison
siuwuncheung Jan 24, 2025
13b59b3
Add number of quench iterations for convergence
siuwuncheung Jan 24, 2025
18650d5
Update job scripts
siuwuncheung Jan 27, 2025
fb2c72d
Update config files
siuwuncheung Jan 27, 2025
8036917
Update toy example
siuwuncheung Jan 27, 2025
a80300d
Remove redundant script
siuwuncheung Jan 28, 2025
f0eaa2a
Updates
siuwuncheung Jan 28, 2025
0822805
Update scripts
siuwuncheung Jan 28, 2025
c0bc938
Add functional script
siuwuncheung Jan 30, 2025
dd076eb
Templatize scripts
siuwuncheung Jan 31, 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
3 changes: 3 additions & 0 deletions examples/PinnedH2O/QuenchAndEVP/coords.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
O1 1 0.00 0.00 0.00 0
H1 2 1.12 1.45 0.00 1
H2 2 1.12 -1.45 0.00 1
30 changes: 30 additions & 0 deletions examples/PinnedH2O/QuenchAndEVP/job.MVP
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/tcsh
#SBATCH -N 2
#SBATCH -t 4:00:00
#SBATCH -p pbatch

date

setenv OMP_NUM_THREADS 1
#setenv KMP_DETERMINISTIC_REDUCTION 1

set ncpus = 64

set maindir = /p/lustre2/cheung26/mgmol-20241220

setenv LD_LIBRARY_PATH ${maindir}/build_quartz/libROM/build/lib:$LD_LIBRARY_PATH

set exe = mgmol-opt

cp $maindir/install_quartz/bin/$exe .

set cfg = mgmol_MVP.cfg

ln -s -f $maindir/potentials/pseudo.O_ONCV_PBE_SG15 .
ln -s -f $maindir/potentials/pseudo.H_ONCV_PBE_SG15 .

source $maindir/scripts/modules.quartz

srun -n $ncpus $exe -c ${cfg} -i coords.in > PinnedH2O_MVP.out

date
30 changes: 30 additions & 0 deletions examples/PinnedH2O/QuenchAndEVP/job.quench
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/tcsh
#SBATCH -N 2
#SBATCH -t 4:00:00
#SBATCH -p pbatch

date

setenv OMP_NUM_THREADS 1
#setenv KMP_DETERMINISTIC_REDUCTION 1

set ncpus = 64

set maindir = /p/lustre2/cheung26/mgmol-20241220

setenv LD_LIBRARY_PATH ${maindir}/build_quartz/libROM/build/lib:$LD_LIBRARY_PATH

set exe = mgmol-opt

cp $maindir/install_quartz/bin/$exe .

set cfg = mgmol_quench.cfg

ln -s -f $maindir/potentials/pseudo.O_ONCV_PBE_SG15 .
ln -s -f $maindir/potentials/pseudo.H_ONCV_PBE_SG15 .

source $maindir/scripts/modules.quartz

srun -n $ncpus $exe -c ${cfg} -i coords.in > PinnedH2O_quench.out

date
36 changes: 36 additions & 0 deletions examples/PinnedH2O/QuenchAndEVP/mgmol_MVP.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
verbosity=1
xcFunctional=PBE
FDtype=Mehrstellen
[Mesh]
nx=64
ny=64
nz=64
[Domain]
ox=-6.
oy=-6.
oz=-6.
lx=12.
ly=12.
lz=12.
[Potentials]
pseudopotential=pseudo.O_ONCV_PBE_SG15
pseudopotential=pseudo.H_ONCV_PBE_SG15
[Run]
type=quench
[Thermostat]
siuwuncheung marked this conversation as resolved.
Show resolved Hide resolved
type=Berendsen
temperature=1000.
relax_time=800.
[Quench]
max_steps=100
atol=1.e-8
[Orbitals]
initial_type=Random
initial_width=2.
nempty=10
[Restart]
output_level=4
output_filename=restart_MVP
[DensityMatrix]
solver=MVP
nb_inner_it=20
siuwuncheung marked this conversation as resolved.
Show resolved Hide resolved
32 changes: 32 additions & 0 deletions examples/PinnedH2O/QuenchAndEVP/mgmol_quench.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
verbosity=1
xcFunctional=PBE
FDtype=Mehrstellen
[Mesh]
nx=64
ny=64
nz=64
[Domain]
ox=-6.
oy=-6.
oz=-6.
lx=12.
ly=12.
lz=12.
[Potentials]
pseudopotential=pseudo.O_ONCV_PBE_SG15
pseudopotential=pseudo.H_ONCV_PBE_SG15
[Run]
type=quench
[Thermostat]
siuwuncheung marked this conversation as resolved.
Show resolved Hide resolved
type=Berendsen
temperature=1000.
relax_time=800.
[Quench]
max_steps=100
atol=1.e-8
[Orbitals]
initial_type=Random
initial_width=2.
[Restart]
output_level=4
output_filename=restart_quench
2 changes: 1 addition & 1 deletion tests/PinnedH2O_3DOF/job.online_test1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setenv LD_LIBRARY_PATH ${maindir}/build_quartz/libROM/build/lib:$LD_LIBRARY_PATH

set exe = testPinnedH2O_3DOF

#cp $maindir/build_quartz/tests/$exe .
cp $maindir/build_quartz/tests/$exe .

set cfg_online = mgmol_online_test1.cfg

Expand Down
3 changes: 1 addition & 2 deletions tests/PinnedH2O_3DOF/job.online_test2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setenv LD_LIBRARY_PATH ${maindir}/build_quartz/libROM/build/lib:$LD_LIBRARY_PATH

set exe = testPinnedH2O_3DOF

#cp $maindir/build_quartz/tests/$exe .
cp $maindir/build_quartz/tests/$exe .

set cfg_online = mgmol_online_test2.cfg

Expand All @@ -26,6 +26,5 @@ ln -s -f $maindir/potentials/pseudo.H_ONCV_PBE_SG15 .
source $maindir/scripts/modules.quartz

srun -p pdebug -n $ncpus $exe -c $cfg_online -i coords_1.00_1.00_0.0.in
#python3 test.py srun -p pdebug -n $ncpus $exe $cfg_online coords_1.00_1.00_0.0.in .

date
1 change: 1 addition & 0 deletions tests/PinnedH2O_3DOF/testPinnedH2O_3DOF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ int main(int argc, char** argv)

orbitals.set(ct.getROMOptions().basis_file, ct.numst);
orbitals.orthonormalizeLoewdin();
orbitals.setDataWithGhosts(true);

// set the iterative index to 1 to differentiate it from first instance
// in MGmol initial() function. This is not very clean and could be
Expand Down
Loading