update source

This commit is contained in:
2021-07-18 10:02:32 +08:00
parent 726b96a029
commit c3efc2928d
12 changed files with 1286 additions and 27 deletions

View File

@@ -4,7 +4,17 @@ int main(int argc, char const *argv[])
{
if (argc == 1)
{
std::clog << "./magtet <para-file>\n";
std::clog << "Magnetic gradient tensors of homologous tetrahedrons.\n";
std::clog << "Usage: ./magtet <para-file>\n";
std::clog << "Option format:\n";
std::clog << "<option> = <value>\n";
std::clog << "Available options:\n";
std::clog << "tet-file: 3D model file. this option needs both .node and .ele files generated by Tetgen. No file extension is needed\n";
std::clog << "mag-file: magnetization vectors. Line format: <magz-x> <magz-y> <magz-z>\n";
std::clog << "site-file: observation points. format1: <filename> format2: <xmin>/<xmax>/<ymin>/<ymax>/<z>/<xnum>/<ynum>\n";
std::clog << "site-file: line format: <x> <y> <z>\n";
std::clog << "obs-file: output observation files. No file extension is needed\n";
std::clog << "cal-type: available calculating types: potential, gradient and tensor\n";
return -1;
}