  In this article we investigate a class of linear error correcting codes in
relation with the order polytopes. In particular we consider the order
polytopes of tree posets and bipartite posets. We calculate the parameters of
the associated toric variety codes.
