This question is about use of high energy propellants on a rocket engine designed for low energy propellants. In any engine, which is currently working on RP1+LOX, if we change the fuel from RP1 to LH2, and off course make other necessary changes to suit the requirements of the new fuel (e.g storage tanks, temp., changes in propellant ratio etc. - keeping the overall mass flow rate of propellant same - if required), will it provide the same thrust? or will it change.. for better or worse? This might sound similar to "what if petrol is used instead of diesel" or vice-versa, - in an automobile. But there the working principles are different. Unlike so in a rocket engine, hence the question.
Thrust is equal to mass flow rate times specific impulse.
If you maintain the mass flow rate, then if the specific impulse is increased (almost a certainty if you change from RP-1 to hydrogen) the thrust will increase proportionally.
In practice, maintaining the mass flow rate would require a totally different turbopump and combustion chamber, because hydrogen is something like 12 times less dense than kerosene, so it couldn't really be said to be "the same engine".
The LR87 of the Titan II is one engine that was adapted from dense fuels to hydrogen; despite the fact that specific impulse increased around 50% in its experimental hydrogen-fueled version, thrust was significantly lower, because the mass flow rate of the original couldn’t be maintained.
Besides the LR87, the RL10 is the only other example I know; this is a small hydrogen engine that has been experimentally fired with methane and propane, presumably with increased thrust and decreased specific impulse, but I don't know anything about its performance in those tests.