[TEST]UPSTREAM: Pick some source changes from 48080d0a97

* Sync new folder structure
This commit is contained in:
2026-04-23 20:55:40 +08:00
parent c185f99ee3
commit 17109fde9b
211 changed files with 189504 additions and 189280 deletions

View File

@@ -0,0 +1,38 @@
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <cmath>
using namespace std;
#include <time.h>
#include <mpi.h>
#include "var.h"
var::var(const char *namei, int sgfni,
const double SYM1, const double SYM2, const double SYM3) : sgfn(sgfni)
{
const char *p = namei;
int i = 0;
while (*(p++))
i++;
if (i > 20)
cout << "too long name for var: " << namei << endl;
sprintf(name, namei);
SoA[0] = SYM1;
SoA[1] = SYM2;
SoA[2] = SYM3;
propspeed = 1;
}
var::~var() {}
void var::setpropspeed(const double vl)
{
propspeed = vl;
}