I have installed and include the required packages but it still gives me the error. Here is my code:
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{algorithm}
\caption{Mesh Reader}\label{reader}
\begin{algorithmic}[1]
\Procedure{mesh\_reader}{}
\State chunk\_size = rows/total threads
\Begin
\State Parallel region
\For {each row in mesh}
\State create node object
\State assign coordinates of node
\EndFor
\End
\For{ each Element in mesh}
\If {Element is of \textbf{EDGE} type}
\State create Edge object
\State assign node id and other properties to Edge
\State add Edge object to \textbf{Element list}
\If{Edge lies on Dirichlet boundary}
\State Add Edge node id to Dirichlet boundary list
\EndIf
\ElsIf{Element is of $\Delta$ type}
\State create Triangle object
\State assign node id and other properties to $\Delta$
\State add $\Delta$ object to \textbf{Element list}
\EndIf
\EndFor
\EndProcedure
\end{algorithmic}
\end{algorithm}
\Begin
and\End
do in the algorithm? Comment them out/delete them and you can compile without errors ... – Mensch Jul 20 '19 at 15:51begin
and end it with boldEnd
– Rami Far Jul 20 '19 at 16:29\Begin
/\End
an stand-alone\Begin
/\End
makes syntactical no sense ... Therefore the correct error message ... Please explain better what concret you want to get (how to do that is then another question with perhaps surprising solutions ...) – Mensch Jul 20 '19 at 16:41\Begin
and\End
command is provided by algorithmx package I have read the manual. I want to use it to tell from here my parallel region is started – Rami Far Jul 20 '19 at 17:02