Skip to content

Commit

Permalink
Add abort message
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Aug 26, 2022
1 parent da366e2 commit d084757
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xray_diffraction.F
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@ SUBROUTINE calculate_rhotot_elec_gspace(qs_env, auxbas_pw_pool, &
CALL get_pw_grid_info(pw_grid=rhotot_elec_gspace%pw%pw_grid, &
vol=volume, &
orthorhombic=orthorhombic)
CPASSERT(orthorhombic)
IF (.NOT. orthorhombic) THEN
CALL cp_abort(__LOCATION__, &
"The calculation of XRD spectra for non-orthorhombic cells is not implemented")
END IF

CALL pw_scale(rhotot_elec_gspace%pw, volume)

Expand Down

0 comments on commit d084757

Please sign in to comment.