@FORCES#

Go to point in code after forces have been calculated.

@FORCES#

Go to @FORCES node.

The engine proceeds to the next @FORCES node. This node occurs after all contributions to the atomic forces have been calculated. This command is not valid at the @DEFAULT node. One would typically proceed to the @FORCES node after initializing a simulation (e.g. @INIT_MD, @INIT_MC, or @INIT_OPTG).

Examples#

import mdi

# connect to the engine
mdi_engine = mdi.MDI_Accept_Communicator()

# first initialize a simulation
mdi.MDI_Send_Command("@INIT_MD", mdi_engine)

# go to forces node
mdi.MDI_Send_Command("@FORCES", mdi_engine)

#include "mdi.h"

// connect to the engine
MDI_Comm mdi_engine = MDI_Accept_Communicator();

// first initialize a simulation
MDI_Send_Command("@INIT_MD", mdi_engine);

// go to forces node.
MDI_Send_Command("@FORCES", mdi_engine);