Skip to content

Commit

Permalink
Deploying to gh-pages from @ e714cf4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed May 8, 2024
1 parent 4269c17 commit ce2dfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _sources/driver_tutorial.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ The command to get the box vectors is `<CELL`. You expect this to contain 9 valu
:::{code-block} python
# Get the box size from LAMMPS
mdi.MDI_Send_Command("<CELL", lammps)
box_vects = mdi.MDI_Recv(9, lammps)
box_vects = mdi.MDI_Recv(9, mdi.MDI_DOUBLE, lammps)

print(f"The box size is {box_vects}.")
:::
Expand Down
2 changes: 1 addition & 1 deletion driver_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ <h2>Sending and Receiving Data<a class="headerlink" href="#sending-and-receiving
<p class="admonition-title">Solution</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Get the box size from LAMMPS </span>
<span class="n">mdi</span><span class="o">.</span><span class="n">MDI_Send_Command</span><span class="p">(</span><span class="s2">&quot;&lt;CELL&quot;</span><span class="p">,</span> <span class="n">lammps</span><span class="p">)</span>
<span class="n">box_vects</span> <span class="o">=</span> <span class="n">mdi</span><span class="o">.</span><span class="n">MDI_Recv</span><span class="p">(</span><span class="mi">9</span><span class="p">,</span> <span class="n">lammps</span><span class="p">)</span>
<span class="n">box_vects</span> <span class="o">=</span> <span class="n">mdi</span><span class="o">.</span><span class="n">MDI_Recv</span><span class="p">(</span><span class="mi">9</span><span class="p">,</span> <span class="n">mdi</span><span class="o">.</span><span class="n">MDI_DOUBLE</span><span class="p">,</span> <span class="n">lammps</span><span class="p">)</span>

<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The box size is </span><span class="si">{</span><span class="n">box_vects</span><span class="si">}</span><span class="s2">.&quot;</span><span class="p">)</span>
</pre></div>
Expand Down

0 comments on commit ce2dfb3

Please sign in to comment.