1.Water comprises hydrogen and oxygen.
2. Water is comprised of hydrogen and oxygen.
Are the both grammatical and same in meaning?
Only the first.
I'm not a teacher, but I write for a living. Please don't ask me about 2nd conditionals, but I'm a safe bet for what reads well in (American) English.