Ansel Elgort has come on board “Jonathan,” playing both twin roles in the independent movie, which is set to begin shooting next month in New York.

Bill Oliver is directing from a script he co-wrote with Peter Nickowitz. Randy Manis and Ricky Tollman are producing and Neal Dodson is exec producing.

Elgort will portray Jonathan and his twin brother John, who have agreed to not have girlfriends. Jonathan is a successful architect while John sleeps all day and spends the night socializing and starting to fall in love with a woman. Jonathan forces John to end the relationship, and then starts a new relationship with the woman himself.

Elgort’s credits include “The Fault in Our Stars,” the three “Divergent” films, the upcoming remake of “The Billionaire Boys Club” and “Baby Driver” from director Edgar Wright. He’s been in talks to star in “Dungeons and Dragons” for Warner Bros.

Oliver directed the 2005 short “Guilt” from his own script.

Elgort is repped by CAA, Brookside and Morris Yorn. The news was first reported by Deadline Hollywood.