Solar activity forecast with a dynamo model