I read at [1] that Dou was able to set current-density in the
input file using the line:
spin-torque:current-density=0.1e12
However, it is also mentioned by that VAMPIRE user that it had
no effect on the outputted results.
I suspect that the spin-torque module would need to be enabled
for the current-density to work.
In interface.cpp [2], lines 146-160 have:
// Check for valid key, if no match return false
std::string prefix="spin-torque";
if(key!=prefix) return false;
//----------------------------------
// Now test for all valid options
//----------------------------------
std::string test="enable-ST-fields";
if(word==test){
st::internal::enabled
= true;
return true;
}
The initialise.cpp [3] has on lines 51-54:
if(st::internal::enabled==false)
return;
// output informative message
zlog << zTs() << "Initialising data structures for
spin torque calculation." << std::endl;
From the above lines of code, it looks like the spin-torque
module can be enabled by putting in the input file the line:
spin-torque:enable-ST-fields
Kind Regards,
Gavin
VAMPIRE user