This will only work if you guys truly have 0 feelings for each other. I mean you have to be at a point where neither of you care about the other, you feel like you are better of without each other and you are just roommates.
I have done this (before I had a child) and it was an awful idea. If you are not together then living under the same roof will create many issues for anyone. It is highly not recommended in my experience and opinion.
Unless you guys are doing this short term til whom ever is able to move out.