This paper presents a numerical solution for the 2D acoustic wave equation, considering heterogeneous media. It has been developed through a software in Fortran 90 that uses a second-order finite difference approximation. This program generates a set of patterns to detect the presence of oil in the subsurface. The algorithm is based on a geological domain where the sources (shots) and receivers are located. Each process takes care of a subset of sources and returns to the primary method patterns and seismograms corresponding to its group of sources. In the end, an image of the resulting seismogram is shown along the analyzed geologic profile. Stability and convergence tests were performed to ensure the reliability of the results. These tests were performed using a geological profile 100,000 m long and 17,400 m deep, divided into strata. For the execution of the software, a cluster of 16 processors was used as a computational platform.