diff --git a/_sources/driver_tutorial.md.txt b/_sources/driver_tutorial.md.txt
index dd5517c..e976af4 100644
--- a/_sources/driver_tutorial.md.txt
+++ b/_sources/driver_tutorial.md.txt
@@ -315,10 +315,19 @@ When using MDI, we retrieve data from the engine by sending a command to the eng
The first command we use is the `mdi.MDI_Send_Command` function.
The argument to this function is the command to send and the engine we would like to send the command to.
When using `MDI_Send_Command`, we use `<` to tell the engine to send data to the driver, and `>` to tell the driver to send data to the engine.
-
For example, to get the number of atoms in the system, we first call `mdi.MDI_Send_Command("MDI_Send_Command
, we use <
to tell the engine to send data to the driver, and >
to tell the driver to send data to the engine.
For example, to get the number of atoms in the system, we first call mdi.MDI_Send_Command("<NATOMS", lammps)
to tell LAMMPS to send the number of atoms.
-Then, we call mdi.MDI_Recv
to receive the data.
-When using mdi.MDI_Recv
, we have to tell MDI how many values we expect to get back and the data type for the value or values we expect to receive.
MDI_Send_Command
, we use <
to tell the engine to send data to the driver, and >
to tell the driver to send data to the engine.
+For example, to get the number of atoms in the system, we first call mdi.MDI_Send_Command("<NATOMS", lammps)
to tell LAMMPS to send the number of atoms.
+After we have sent the command to the engine, we have to retrieve the data.
+This is done with the mdi.MDI_Recv
function.
+When using mdi.MDI_Recv
, we have to tell MDI how many values we expect to get back and the data type for the value or values we expect to receive.
+They syntax is
mdi.MDI_Recv(EXPECTED_NUMBER_OF_VALUES, DATA_TYPE, ENGINE_COMMUNICATOR)
+
The expected data types are defined in the MDI library.
+For example, mdi.MDI_INT
is the data type for an integer, and mdi.MDI_DOUBLE
is the data type for a double (decimal) value.
Add the following code to the # Perform the simulation
section to get the number of atoms in the system: