Skip to content
Snippets Groups Projects
Commit 76e61041 authored by Nicolas Essing's avatar Nicolas Essing
Browse files

Added a consistency check for the input parameters.

If noncollinear magnetic fields are enabled (noncobfield=t) but
noncollinear magnetism is not (korbit=0), the program will print
an error message and halt.
parent a8cbb566
No related branches found
No related tags found
No related merge requests found
......@@ -386,6 +386,12 @@ module CalculationData_mod
call setup_iguess(self, dims, arrays%nofks, kmesh) ! setup storage for iguess
if (params%noncobfield) then
! Check that noncollinear magnetism is enabled
if (dims%korbit < 1) then
die_here("Noncollinear magnetic fields (noncobfield=t) need noncollinear magnetism. Set korbit=1.")
end if
! Output only as master, in that case copy the input parameter
verbosity = -1
if (mp%isMasterRank) verbosity = params%bfield_verbosity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment