The sentence "It rained heavily, we waited it out under a tree" is a comma splice, as it incorrectly joins two independent clauses with just a comma. To correct this, a coordinating conjunction or a semicolon should be used. Therefore, it's not fully grammatically correct as written. ;