geodynamics / axisem

AxiSEM is a parallel spectral-element method to solve 3D wave propagation in a sphere with axisymmetric or spherically symmetric visco-elastic, acoustic, anisotropic structures.
66 stars 31 forks source link

for "external" models, put the correct model name in the output files #35

Closed martinvandriel closed 9 years ago

martinvandriel commented 9 years ago

for "external" models, put the correct model name in the output files

martinvandriel commented 9 years ago

painful, because movemesh in MESHER moves the model file to external_model.bm and the filename is hence not known in the solver. The model file does not yet contain a name field, should we add this? @sstaehler ?

martinvandriel commented 9 years ago

Done in the MESHER, communicating the NAME to the SOLVER requires changing the meshdb files.

sstaehler commented 9 years ago

And this means writing a character string of unknown length to a binary file. Yeah

martinvandriel commented 9 years ago

Well, we do the same with the normal background model name (where we explicitly store the length on top).

sstaehler commented 9 years ago

okay, then we could store the external model name there?

martinvandriel commented 9 years ago

Yes. I am trying to avoid to store the length explicitly and just trim it in the SOLVER...

martinvandriel commented 9 years ago

This was stupid....of course the name is still in the external_model.bm file. So no need to put it in the mesh. I was confused because I first wanted to use the filename of the external model file, which of course is lost.

martinvandriel commented 9 years ago

Do we still use simulation.info somewhere? If I add it there as well, we would need to adapt all codes reading it, I guess?

martinvandriel commented 9 years ago

see ef523e7c4260084c58f2fa47ceb642bccd69d67a

sstaehler commented 9 years ago

The kerner does not use it. Instaseis either

martinvandriel commented 9 years ago

Ok, so I'll just leave it anyway. Seems to be done to me.