Skip to content

Commit

Permalink
Add test for magnetic properties
Browse files Browse the repository at this point in the history
  • Loading branch information
stigrj committed Jan 16, 2024
1 parent cdb3f9b commit 72b085f
Show file tree
Hide file tree
Showing 10 changed files with 1,288 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ target_link_libraries(mrchem-tests
add_subdirectory(h_el_field)
add_subdirectory(h2_scf_hf)
add_subdirectory(h2_pol_lda)
add_subdirectory(h2_mag_lda)
add_subdirectory(h2o_energy_blyp)
add_subdirectory(h2_pol_cube)
add_subdirectory(li_scf_pbe0)
Expand Down
11 changes: 11 additions & 0 deletions tests/h2_mag_lda/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if(ENABLE_MPI)
set(_h2_mag_lda_launcher "${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 1")
endif()

add_integration_test(
NAME "H2_magnetic_properties_LDA"
LABELS "H2_magnetic_properties_LDA;magnetizability;nmr;mrchem;h2_mag_lda"
COST 100
LAUNCH_AGENT ${_h2_mag_lda_launcher}
INITIAL_GUESS ${CMAKE_CURRENT_LIST_DIR}/initial_guess
)
42 changes: 42 additions & 0 deletions tests/h2_mag_lda/h2.inp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"world_prec": 0.001,
"world_size": 5,
"world_unit": "angstrom",
"MPI": {
"numerically_exact": true
},
"Molecule": {
"coords": "H 0.0000 0.0000 -0.3705\nH 0.0000 0.0000 0.3705\n"
},
"WaveFunction": {
"method": "DFT",
"restricted": false
},
"DFT": {
"functionals": "LDA\n"
},
"Properties": {
"magnetizability": true,
"nmr_shielding": true
},
"NMRShielding": {
"nuclear_specific": false,
"nucleus_k": [
0
]
},
"SCF": {
"run": false,
"guess_type": "GTO"
},
"Response": {
"kain": 3,
"max_iter": 10,
"orbital_thrs": 0.01,
"run": [
true,
false,
false
]
}
}
12 changes: 12 additions & 0 deletions tests/h2_mag_lda/initial_guess/mrchem.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Gaussian basis cc-pVDZ
1
1. 2 2 1 1
H 0.0000000000 0.0000000000 -0.7000000000
H 0.0000000000 0.0000000000 0.7000000000
4 2
13.0100000 0.01968500 0.00000000
1.9620000 0.13797700 0.00000000
0.4446000 0.47814800 0.00000000
0.1220000 0.50124000 1.00000000
1 1
0.7270000 1.00000000
101 changes: 101 additions & 0 deletions tests/h2_mag_lda/initial_guess/mrchem.moa
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
10
0.679818844859533
-0.160895416296538
-0.000000000000000
0.000000000000000
0.017200409670392
0.679805451164590
-0.160897270288160
0.000000000000000
-0.000000000000000
-0.017201747283775
0.394259467128243
1.587077397076630
0.000000000000000
-0.000000000000000
-0.022389357994487
-0.394263910524846
-1.587077979012975
0.000000000000000
0.000000000000000
-0.022387397572700
1.187321376637329
-1.316250637902104
0.000000000000000
0.000000000000000
0.022694692771659
1.187304649593490
-1.316224276109744
0.000000000000000
0.000000000000000
-0.022696339380126
1.376073054086166
-2.492342381832811
0.000000000000000
0.000000000000000
-0.358858997767801
-1.376084250923773
2.492352716677140
0.000000000000000
0.000000000000000
-0.358855133999848
0.000000000000000
-0.000000000000001
0.154953780296779
-0.558091716418119
0.000000000000000
-0.000000000000000
0.000000000000001
0.154951569196481
-0.558083752774001
-0.000000000000000
0.000000000000002
-0.000000000000002
-0.558091716418118
-0.154953780296779
-0.000000000000000
-0.000000000000001
0.000000000000001
-0.558083752774003
-0.154951569196481
0.000000000000000
-0.768175736191248
0.618306842395530
0.000000000000002
-0.000000000000000
0.726245917411092
-0.768198542983742
0.618322374960124
-0.000000000000002
0.000000000000001
-0.726240941243852
-0.000000000000001
0.000000000000001
0.197139927993266
0.970753591501604
-0.000000000000000
0.000000000000001
-0.000000000000000
-0.197140889760886
-0.970758327423854
-0.000000000000001
0.000000000000000
-0.000000000000001
0.970753591501605
-0.197139927993266
-0.000000000000002
0.000000000000003
-0.000000000000002
-0.970758327423854
0.197140889760886
0.000000000000001
-4.523132495077299
2.174458822653225
-0.000000000000001
-0.000000000000000
-2.033927630281827
4.523131231784129
-2.174457955524351
0.000000000000000
0.000000000000000
-2.033930080692429
101 changes: 101 additions & 0 deletions tests/h2_mag_lda/initial_guess/mrchem.mob
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
10
0.679818844859533
-0.160895416296539
-0.000000000000000
0.000000000000000
0.017200409670392
0.679805451164589
-0.160897270288158
0.000000000000000
-0.000000000000000
-0.017201747283775
0.394259467128246
1.587077397076628
0.000000000000000
-0.000000000000000
-0.022389357994487
-0.394263910524851
-1.587077979012969
0.000000000000000
-0.000000000000000
-0.022387397572699
-1.187321376637334
1.316250637902108
0.000000000000000
-0.000000000000000
-0.022694692771660
-1.187304649593484
1.316224276109738
0.000000000000000
0.000000000000000
0.022696339380125
-1.376073054086158
2.492342381832807
-0.000000000000000
-0.000000000000000
0.358858997767803
1.376084250923769
-2.492352716677142
-0.000000000000000
-0.000000000000000
0.358855133999850
0.000000000000001
-0.000000000000001
-0.574216174284626
-0.075847367473843
-0.000000000000000
-0.000000000000001
0.000000000000001
-0.574207980553876
-0.075846285176034
0.000000000000000
-0.000000000000001
0.000000000000002
-0.075847367473843
0.574216174284625
-0.000000000000000
0.000000000000000
-0.000000000000002
-0.075846285176034
0.574207980553877
0.000000000000000
-0.768175736191250
0.618306842395533
0.000000000000000
-0.000000000000002
0.726245917411091
-0.768198542983740
0.618322374960122
-0.000000000000001
0.000000000000002
-0.726240941243852
0.000000000000001
-0.000000000000002
-0.332816873429361
-0.932984252484017
-0.000000000000001
0.000000000000001
-0.000000000000000
0.332818497111055
0.932988804144622
0.000000000000001
0.000000000000000
-0.000000000000001
0.932984252484016
-0.332816873429361
-0.000000000000001
0.000000000000002
-0.000000000000001
-0.932988804144622
0.332818497111055
0.000000000000000
-4.523132495077297
2.174458822653227
-0.000000000000000
0.000000000000000
-2.033927630281826
4.523131231784130
-2.174457955524355
0.000000000000000
-0.000000000000000
-2.033930080692428
Loading

0 comments on commit 72b085f

Please sign in to comment.