Skip to content

Commit 3b41a05

Browse files
committed
Fixed components test.
1 parent 56d4074 commit 3b41a05

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/components.cdb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def test34():
702702
print("Test 34 passed")
703703

704704
test34()
705-
705+
706706
def test35():
707707
__cdbkernel__=create_scope()
708708
{r,t,\phi,\theta}::Coordinate.
@@ -711,7 +711,7 @@ def test35():
711711
g_{\mu\nu}::Metric.
712712
g^{\mu\nu}::InverseMetric.
713713
ss:= { g_{t t} = -(1-2 M/r), g_{r r} = 1/(1-2 M/r),
714-
g_{\theta\theta} = r**2, g_{\phi\phi}=r**2 \sin(\theta)**2 };
714+
g_{\theta\theta} = r**2, g_{\phi\phi}=r**2 \sin(\theta)**2 };
715715
complete(ss, $g^{\mu\nu}$)
716716
ch:= \Gamma^{\mu}_{\nu\rho} = 1/2 g^{\mu\sigma} ( \partial_{\rho}{g_{\nu\sigma}}
717717
+\partial_{\nu}{g_{\rho\sigma}}
@@ -738,17 +738,17 @@ def test36():
738738
test36()
739739

740740
def test37():
741-
{r,t,\phi,\theta}::Coordinate.
742-
{\mu,\nu,\rho,\sigma,\lambda,\kappa,\gamma,\chi}::Indices(values={t,r,\phi,\theta}, position=fixed).
743-
\partial{#}::PartialDerivative.
744-
g_{\mu\nu}::Metric.
745-
g^{\mu\nu}::InverseMetric.
746-
g::Determinant(g_{\mu\nu}).
747-
gt::Trace(g_{\mu\nu}).
748-
ss:= { g_{t t} = -(1-2 M/r), g_{r r} = 1/(1-2 M/r),
749-
g_{\theta\theta} = r**2, g_{\phi\phi}=r**2 \sin(\theta)**2 };
750-
complete(ss, $g$)
751-
complete(ss, $gt$)
741+
{r,t,\phi,\theta}::Coordinate.
742+
{\mu,\nu,\rho,\sigma,\lambda,\kappa,\gamma,\chi}::Indices(values={t,r,\phi,\theta}, position=fixed).
743+
\partial{#}::PartialDerivative.
744+
g_{\mu\nu}::Metric.
745+
g^{\mu\nu}::InverseMetric.
746+
g::Determinant(g_{\mu\nu}).
747+
gt::Trace(g_{\mu\nu}).
748+
ss:= { g_{t t} = -(1-2 M/r), g_{r r} = 1/(1-2 M/r),
749+
g_{\theta\theta} = r**2, g_{\phi\phi}=r**2 \sin(\theta)**2 };
750+
complete(ss, $g$)
751+
complete(ss, $gt$)
752752
ex:= g;
753753
substitute(ex, ss);
754754
tst:= -r**4 \sin(\theta)**2 - @(ex);
@@ -757,11 +757,11 @@ complete(ss, $gt$)
757757
ex:= gt;
758758
substitute(ex, ss);
759759

760-
\tau::Coordinate;
761-
{X,Y}::Depends(\tau);
762-
\partial{#}::PartialDerivative;
763-
ex:=\partial_{\tau}{X} \partial_{\tau}{Y};
764-
evaluate(_);
760+
# \tau::Coordinate;
761+
# {X,Y}::Depends(\tau);
762+
# \partial{#}::PartialDerivative;
763+
# ex:=\partial_{\tau}{X} \partial_{\tau}{Y};
764+
# evaluate(_);
765765

766766
# def test35():
767767
# __cdbkernel__=create_scope()

0 commit comments

Comments
 (0)